Bug 1218501 - VUL-0: CVE-2023-50711: aws-nitro-enclaves-cli: vmm-sys-util: out of bounds memory accesses
Summary: VUL-0: CVE-2023-50711: aws-nitro-enclaves-cli: vmm-sys-util: out of bounds me...
Status: RESOLVED FIXED
Alias: None
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/389863/
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2023-50711
  Show dependency treegraph
 
Reported: 2024-01-03 10:22 UTC by Thomas Leroy
Modified: 2024-06-11 13:42 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Leroy 2024-01-03 10:22:37 UTC
+++ This bug was initially created as a clone of Bug #1218499 +++

vmm-sys-util is a collection of modules that provides helpers and utilities used by multiple rust-vmm components. Starting in version 0.5.0 and prior to version 0.12.0, an issue in the `FamStructWrapper::deserialize` implementation provided by the crate for `vmm_sys_util::fam::FamStructWrapper` can lead to out of bounds memory accesses. The deserialization does not check that the length stored in the header matches the flexible array length. Mismatch in the lengths might allow out of bounds memory access through Rust-safe methods. The issue was corrected in version 0.12.0 by inserting a check that verifies the lengths of compared flexible arrays are equal for any deserialized header and aborting deserialization otherwise. Moreover, the API was changed so that header length can only be modified through Rust-unsafe code. This ensures that users cannot trigger out-of-bounds memory access from Rust-safe code.

References:
https://github.com/rust-vmm/vmm-sys-util/security/advisories/GHSA-875g-mfp6-g7f9
https://github.com/rust-vmm/vmm-sys-util/commit/30172fca2a8e0a38667d934ee56682247e13f167
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-50711
Comment 1 Thomas Leroy 2024-01-03 10:23:02 UTC
SUSE:SLE-15-SP4:Update/aws-nitro-enclaves-cli uses an affected version of the
vmm-sys-util crate.
Comment 2 Dario Faggioli 2024-01-11 12:08:19 UTC
Ok, Olaf, you're the bugowner of that package, as far as I can see, therefore I'm giving this to you.

Let me know if you don't think you should be dealing with it and we'll figure things out...
Comment 4 Olaf Hering 2024-01-24 12:02:47 UTC
Blocked by https://github.com/aws/aws-nitro-enclaves-cli/issues/584
Comment 6 Olaf Hering 2024-04-15 20:22:12 UTC
Rudi, do you remember why aws-nitro-enclaves-cli was forked intp SLE15-SP6?
The SR lacks details.
If possible, remove the forked pkg, and use the pkgs from the existing Update channels.
Comment 7 Ruediger Oertel 2024-04-16 08:13:10 UTC
this was requested by Eugenio on 2024/2/21 to enforce recompilation against openssl-3
Comment 8 Olaf Hering 2024-04-16 08:38:32 UTC
I see. In 15.6 the pkg requires "libssl.so.3(OPENSSL_3.0.0)(64bit)", in 15.5 "libssl.so.1.1(OPENSSL_1_1_1)(64bit)". In other words, the fork is required.
Comment 11 Olaf Hering 2024-06-05 21:52:35 UTC
update submitted.
Comment 13 Maintenance Automation 2024-06-10 16:30:01 UTC
SUSE-SU-2024:1966-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1218501
CVE References: CVE-2023-50711
Maintenance Incident: [SUSE:Maintenance:34162](https://smelt.suse.de/incident/34162/)
Sources used:
Public Cloud Module 15-SP6 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150600.10.3.1
openSUSE Leap 15.6 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150600.10.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 14 Maintenance Automation 2024-06-11 12:30:20 UTC
SUSE-SU-2024:1984-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1218501
CVE References: CVE-2023-50711
Maintenance Incident: [SUSE:Maintenance:34157](https://smelt.suse.de/incident/34157/)
Sources used:
openSUSE Leap 15.4 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150400.3.6.1
openSUSE Leap 15.5 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150400.3.6.1
Public Cloud Module 15-SP4 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150400.3.6.1
Public Cloud Module 15-SP5 (src):
 aws-nitro-enclaves-cli-1.3.0~git1.db34c02-150400.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.