CyberSecBulletin
CVE-2024-46673NVD status: Modified

Linux: Double Free

CVE-2024-46673 is a high-severity double free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions d237c7d06ffddcdb5d36948c527dc01284388218, 564e1986b00c5f05d75342f8407f75f0a17b94df, 9e96dea7eff6f2bbcd0b42a098012fc66af9eb69 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.29% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to d237c7d06ffddcdb5d36948c527dc01284388218 or 564e1986b00c5f05d75342f8407f75f0a17b94df or 9e96dea7eff6f2bbcd0b42a098012fc66af9eb69 or 85449b28ff6a89c4513115e43ddcad949b5890c9, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 4.19.321 or 5.4.283 or 5.10.225 or 5.15.166, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, d237c7d06ffddcdb5d36948c527dc01284388218; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 564e1986b00c5f05d75342f8407f75f0a17b94df; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 9e96dea7eff6f2bbcd0b42a098012fc66af9eb69; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 85449b28ff6a89c4513115e43ddcad949b5890c9; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 60962c3d8e18e5d8dfa16df788974dd7f35bd87a; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 8a3995a3ffeca280a961b59f5c99843d81b15929; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 4b540ec7c0045c2d01c4e479f34bbc8f147afa4c; 8e0c5ebde82b08f6d996e11983890fc4cc085fab up to, but not including, 919ddf8336f0b84c0453bac583808c9f165a85c2; and 1 more rangesd237c7d06ffddcdb5d36948c527dc01284388218, 564e1986b00c5f05d75342f8407f75f0a17b94df, 9e96dea7eff6f2bbcd0b42a098012fc66af9eb69, 85449b28ff6a89c4513115e43ddcad949b5890c9, 60962c3d8e18e5d8dfa16df788974dd7f35bd87a, 8a3995a3ffeca280a961b59f5c99843d81b15929
LinuxLinux Kernel2.6.15 up to, but not including, 4.19.321; 4.20 up to, but not including, 5.4.283; 5.5 up to, but not including, 5.10.225; 5.11 up to, but not including, 5.15.166; 5.16 up to, but not including, 6.1.108; 6.2 up to, but not including, 6.6.49; 6.7 up to, but not including, 6.10.8; 6.114.19.321, 5.4.283, 5.10.225, 5.15.166, 6.1.108, 6.6.49

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.8HighNVD

Official description

In the Linux kernel, the following vulnerability has been resolved: scsi: aacraid: Fix double-free on probe failure aac_probe_one() calls hardware-specific init functions through the aac_driver_ident::init pointer, all of which eventually call down to aac_init_adapter(). If aac_init_adapter() fails after allocating memory for aac_dev::queues, it frees the memory but does not clear that member. After the hardware-specific init function returns an error, aac_probe_one() goes down an error path that frees the memory pointed to by aac_dev::queues, resulting.in a double-free.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Double Free

The product calls free() twice on the same memory address.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
  • Use a static analysis tool to find double free instances.

More Double Free vulnerabilities (CWE-415)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Double Free vulnerabilities

Spotted an error? Tell us.