CyberSecBulletin
CVE-2024-1086Exploited in the wildNVD status: Analyzed

Linux Kernel Use-After-Free

CVE-2024-1086 is a high-severity use after free vulnerability in Kernel from 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 version 6.8 as the first without the flaw, so updating Kernel to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on May 30, 2024, which means attacks have been observed in the wild, including in ransomware campaigns.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update Kernel to 6.8 or a later version.
  2. Update linux_kernel to 6.8 or a later version.
  3. CISA's required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxKernel3.15 up to, but not including, 6.86.8
Linuxlinux_kernel3.15 up to, but not including, 6.86.8
NetAppH300s FirmwareNot specified in the recordNot stated
NetAppH500s FirmwareNot specified in the recordNot stated
NetAppH700s FirmwareNot specified in the recordNot stated
NetAppH410s FirmwareNot specified in the recordNot stated
NetAppH410c FirmwareNot specified in the recordNot stated
NetAppBootstrap OSNot specified in the recordNot stated
Fedora ProjectFedora39Not stated
Red HatEnterprise Linux Desktop7.0Not stated
Red HatEnterprise Linux For IBM Z Systems7.0_s390xNot stated
Red HatEnterprise Linux For Power Big Endian7.0_ppc64Not stated
Red HatEnterprise Linux For Power Little Endian7.0_ppc64leNot stated
Red HatEnterprise Linux Server7.0Not stated
Red HatEnterprise Linux Workstation7.0Not stated
DebianDebian Linux10.0Not stated
NetAppA250 FirmwareNot specified in the recordNot stated
NetApp500f FirmwareNot specified in the recordNot stated
NetAppC250 FirmwareNot specified in the recordNot stated

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 (google.com)
CVSS 3.17.8HighNVD

Official description

A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation. The nft_verdict_init() function allows positive values as drop error within the hook verdict, and hence the nf_hook_slow() function can cause a double free vulnerability when NF_DROP is issued with a drop error which resembles NF_ACCEPT. We recommend upgrading past commit f342de4e2f33e0e39165d8639387aa6c19dff660.

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

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
  4. Deadline for US federal agencies to remediate, set by CISA.
  5. Record last changed materially (score, affected products, status or references).

References

Technical write-ups (may include proof of concept)

Other vulnerabilities in Kernel

All Kernel vulnerabilities

Recent Use After Free vulnerabilities

Spotted an error? Tell us.