Skip to content

Avoid use after free in wrap and ocb ciphers - #12079

Closed
bernd-edlinger wants to merge 1 commit into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:fix_pr12073
Closed

bernd-edlinger wants to merge 1 commit into
openssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:fix_pr12073

Conversation

@bernd-edlinger

Copy link
Copy Markdown
Member

Fixes #12073

Checklist
  • documentation is added or updated
  • tests are added or updated

@bernd-edlinger bernd-edlinger added the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label Jun 7, 2020
@bernd-edlinger bernd-edlinger changed the title Avioud use after free in wrap and ocb ciphers Avoid use after free in wrap and ocb ciphers Jun 7, 2020
@t8m

t8m commented Jun 8, 2020

Copy link
Copy Markdown
Member

In master the e_aes.c still contains this code. However I suppose it is not used unless the legacy codepath is taken?

@bernd-edlinger

Copy link
Copy Markdown
Member Author

The test cases do not execute the changed functions in master, therefore I think removal
of the whole e_aes.c would be better, but my previous experience shows this will not work
either.
I have no idea how this re-design is supposed to work, instead of moving algorithms
to a provider create duplicated code for the provider and leave the original versions
as dead code, maybe used be cms maybe not, maybe used by engines maybe not,
but never tested.

@paulidale

Copy link
Copy Markdown
Contributor

The original code isn't dead. There are legacy paths which reach it.
It will be removed once we reach the point of being able to remove some of the functions that have been deprecated.

@t8m t8m added the triaged: bug The issue/pr is/fixes a bug label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants