cbcvebase.
CVE-2024-1086
published 2024-01-31

CVE-2024-1086: A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be exploited to achieve local privilege escalation. The…

PriorityP187high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
KEVITWEXPLOITRansomware
CISA Known Exploited Vulnerabilitydue 2024-06-20
Exploited in the wild
EPSS
28.06%
97.9th percentile
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.

Affected

36 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.76-1 (bookworm)linux 6.1.76-1 (bookworm)
fedoraprojectfedora
googlechrome_chrome
linuxkernel>= 3.15 < 6.86.8
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.209-25.10.209-2
linuxlinux_kernel>= 0 < 6.1.76-16.1.76-1
linuxlinux_kernel>= 0 < 6.6.15-16.6.15-1
linuxlinux_kernel>= 0 < 6.6.15-16.6.15-1
linuxlinux_kernel>= 0 < 5.4.0-174.1935.4.0-174.193
linuxlinux_kernel>= 0 < 5.15.0-101.1115.15.0-101.111
linuxlinux_kernel>= 0 < 4.4.0-252.2864.4.0-252.286
linuxlinux_kernel>= 0 < 4.15.0-223.2354.15.0-223.235
linuxlinux_kernel>= 0 < 5.4.0-176.1965.4.0-176.196
linuxlinux_kernel>= 0 < 5.4.0-174.1935.4.0-174.193
linuxlinux_kernel>= 0 < 5.15.0-102.1125.15.0-102.112
linuxlinux_kernel>= 0 < 5.15.0-101.1115.15.0-101.111
linuxlinux_kernel>= 3.15 < 5.15.1495.15.149
linuxlinux_kernel>= 6.1 < 6.1.766.1.76
linuxlinux_kernel>= 6.2 < 6.6.156.6.15
linuxlinux_kernel>= 6.7 < 6.7.36.7.3
msrcazl3_kernel_6.6.14.1-4_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64

Detection & IOCsextracted from sources · hover to see the quote

commandmodprobe_path
  • The exploit achieves a universal root shell without recompilation across different kernels using a 'Dirty Pagedirectory' technique; hunt for unexpected root shell spawning from non-privileged processes on affected kernel versions.
  • The exploit overwrites modprobe_path to achieve privilege escalation; monitor for unexpected writes to modprobe_path kernel symbol or anomalous modprobe execution from non-root processes.
  • System instability or crash following a root shell being dropped may indicate post-exploitation of CVE-2024-1086; correlate unexpected kernel panics or system crashes with prior nf_tables activity.
  • CVE-2024-1086 is being exploited in ransomware attacks; correlate nf_tables-related privilege escalation events with ransomware TTPs such as defense evasion, file encryption, and lateral movement.
  • The vulnerability is triggered via a double-free when NF_DROP is issued with a drop error resembling NF_ACCEPT in nf_hook_slow(); detection logic should look for anomalous netfilter hook verdicts or double-free kernel errors in nf_tables.
  • ·The exploit requires local access; it is not remotely exploitable on its own. Threat actors must first obtain local access before leveraging this vulnerability for privilege escalation.
  • ·The vulnerability affects a broad range of kernel versions (3.15 to 6.8-rc1), impacting many major Linux distributions including Debian, Ubuntu, Fedora, Red Hat, Amazon Linux, Oracle Linux, and Rocky Linux depending on configuration and patch level.
  • ·Loading the LKRG module as a mitigation can cause system instability and should be evaluated carefully before deployment.
  • ·The public PoC exploit may cause system instability and crashes post-exploitation; more sophisticated threat actors may modify the exploit to avoid this behavior, making detection harder.
  • ·Blocking user namespace creation is a recommended mitigation that can reduce the attack surface until patching is feasible.

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vulncheck7.8HIGH
cisa7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.