Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aesv8-armx.pl: Avoid buffer overread in AES-XTS decryption #970

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

nebeid
Copy link
Contributor

@nebeid nebeid commented Apr 20, 2023

Fixes: CVE-2023-1255

The buffer overread happens on decrypts of 4 mod 5 sizes. Unless the memory just after the buffer is unmapped this is harmless. This issue was reported on 27th February 2023 by Anton Romanov (Amazon). The fix was developed by Nevine Ebeid (Amazon).

See OpenSSL master branch commit
openssl/openssl@72dfe46 The fix is also available in commit bc2f61ad (for 3.1) and commit 02ac9c94 (for 3.0).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and
the ISC license.

@nebeid nebeid requested a review from justsmth April 20, 2023 21:08
justsmth
justsmth previously approved these changes Apr 20, 2023
torben-hansen
torben-hansen previously approved these changes Apr 20, 2023
samuel40791765
samuel40791765 previously approved these changes Apr 20, 2023
darylmartin100
darylmartin100 previously approved these changes Apr 20, 2023
andrewhop
andrewhop previously approved these changes Apr 20, 2023
nebeid added 2 commits April 21, 2023 13:31
Fixes: CVE-2023-1255

The buffer overread happens on decrypts of 4 mod 5 sizes.
Unless the memory just after the buffer is unmapped this is harmless.
This issue was reported on 27th February 2023 by Anton Romanov (Amazon).
The fix was developed by Nevine Ebeid (Amazon).

See OpenSSL master branch commit
openssl/openssl@72dfe46
The fix is also available in commit bc2f61ad (for 3.1) and
commit 02ac9c94 (for 3.0).
@nebeid nebeid force-pushed the xts-aarch64-buffer-overread branch from ce6a9ae to 9a6db9e Compare April 21, 2023 17:31
@nebeid nebeid enabled auto-merge (squash) April 21, 2023 18:29
@nebeid nebeid disabled auto-merge April 21, 2023 18:30
@nebeid nebeid merged commit 7c3c62c into aws:main Apr 21, 2023
samuel40791765 pushed a commit to samuel40791765/aws-lc that referenced this pull request Apr 21, 2023
Fixes: CVE-2023-1255

The buffer overread happens on decrypts of 4 mod 5 sizes.
Unless the memory just after the buffer is unmapped this is harmless.
This issue was reported on 27th February 2023 by Anton Romanov (Amazon).
The fix was developed by Nevine Ebeid (Amazon).

See OpenSSL master branch commit
openssl/openssl@72dfe46
The fix is also available in commit bc2f61ad (for 3.1) and
commit 02ac9c94 (for 3.0).

Enabling valgrind is postponed for now.
@justsmth justsmth mentioned this pull request Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants