CVE-2024-27012: Linux kernel · netfilter: nf_tables: restore set elements when delete set fails
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.4.0-1133.143~18.04.1 : patch Linux kernel soon.
Data as of 12 Nov 2026, 18:52 UTC
- Patch
- Available – fixed in 5.4.0-1133.143~18.04.1, 5.4.0-1138.145~18.04.1, 5.4.0-1137.146~18.04.1 +68
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-5 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in multiple Linux kernel versions including 5.4.0-1080.85 and later. Users should upgrade to these fixed versions or later to remediate this vulnerability. No additional mitigation steps are indicated beyond applying the official kernel updates.
Description
CVE-2024-27012 is a vulnerability in the Linux kernel's netfilter nf_tables subsystem. It involves improper restoration of set elements when a delete set operation fails, due to incorrect handling of active and inactive elements during abort paths. This flaw can lead to memory leaks and kernel warnings. The issue has been fixed in several Linux kernel versions starting from 5.4.0-1080.85 and related updates.
References
- ubuntu.com/security/CVE-2024-27012 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-27012 (opens in a new tab)
- git.kernel.org/linus/e79b47a8615d42c68aaeb68971593333667382ed (opens in a new tab)
- git.kernel.org/stable/c/86658fc7414d4b9e25c2699d751034537503d637 (opens in a new tab)
- git.kernel.org/stable/c/e79b47a8615d42c68aaeb68971593333667382ed (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7022-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7021-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7119-1 (opens in a new tab)