Skip to content

Fix a possible memleak in SRP_VBASE_new - #21981

Closed
bernd-edlinger wants to merge 1 commit into
openssl:masterfrom
bernd-edlinger:fix_memleak_in_srp_vbase_new
Closed

bernd-edlinger wants to merge 1 commit into
openssl:masterfrom
bernd-edlinger:fix_memleak_in_srp_vbase_new

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

In the error handling case the memory in
vb->users_pwd was accidentally not released.

In the error handling case the memory in
vb->users_pwd was accidentally not released.
@bernd-edlinger bernd-edlinger added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) branch: 3.0 Applies to openssl-3.0 branch (EOL) branch: 3.1 Applies to openssl-3.1 (EOL) labels Sep 6, 2023

@mattcaswell mattcaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for master/3.1/3.0. Doesn't really seem like a security fix suitable for 1.1.1

@mattcaswell mattcaswell added approval: done This pull request has the required number of approvals and removed branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels Sep 6, 2023
@t8m t8m added triaged: bug The issue/pr is/fixes a bug tests: exempted The PR is exempt from requirements for testing labels Sep 6, 2023
@openssl-machine

Copy link
Copy Markdown
Collaborator

24 hours has passed since 'approval: done' was set, but this PR has failing CI tests. Once the tests pass it will get moved to 'approval: ready to merge' automatically, alternatively please review and set the label manually.

@t8m

t8m commented Sep 8, 2023

Copy link
Copy Markdown
Member

Merged to the master, 3.1, and 3.0 branches. Thank you for the contribution.

@t8m t8m closed this Sep 8, 2023
openssl-machine pushed a commit that referenced this pull request Sep 8, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #21981)

(cherry picked from commit 68e95f7)
openssl-machine pushed a commit that referenced this pull request Sep 8, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #21981)
openssl-machine pushed a commit that referenced this pull request Sep 8, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #21981)

(cherry picked from commit 68e95f7)
@bernd-edlinger

Copy link
Copy Markdown
Member Author

Hmm, there is no substantial difference between this issue and the issue in #22007,
but when #22007 got approved for 1.1.1, we might as well reconsider if this can be merged to 1.1.1 ?

@bernd-edlinger bernd-edlinger reopened this Sep 8, 2023
@t8m t8m added the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label Sep 8, 2023
@t8m

t8m commented Sep 8, 2023

Copy link
Copy Markdown
Member

@mattcaswell @paulidale OK for 1.1.1?

@mattcaswell

Copy link
Copy Markdown
Member

Why is this security relevant? With #22007 I see the introduction of the clear_free call which seems to justify the backport there - but I don't see it here?

@paulidale

Copy link
Copy Markdown
Contributor

I don't see the need for this in 1.1.1 either.

@t8m t8m removed the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label Sep 11, 2023
@t8m t8m closed this Sep 11, 2023
bernd-edlinger added a commit to bernd-edlinger/openssl that referenced this pull request Sep 12, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#21981)

(cherry picked from commit 68e95f7)
wanghao75 pushed a commit to openeuler-mirror/openssl that referenced this pull request Sep 18, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl/openssl#21981)

(cherry picked from commit 68e95f7)
Signed-off-by: Huiyue Xu <[email protected]>
wanghao75 pushed a commit to openeuler-mirror/openssl that referenced this pull request Sep 23, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl/openssl#21981)

(cherry picked from commit 68e95f7)
Signed-off-by: fly2x <[email protected]>
xl32 pushed a commit to xl32/openssl that referenced this pull request Sep 29, 2023
In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#21981)

(cherry picked from commit 68e95f7)
kafei-cy added a commit to kafei-cy/Tongsuo that referenced this pull request Mar 26, 2026
In the error handling case the memory in
vb->users_pwd was accidentally not released.

(Merged from openssl/openssl#21981)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch branch: 3.0 Applies to openssl-3.0 branch (EOL) branch: 3.1 Applies to openssl-3.1 (EOL) tests: exempted The PR is exempt from requirements for testing triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants