CVE-2024-27011: netfilter: nf_tables: fix memleak in map from abort path

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftables: fix memleak in map from abort path

The delete set command does not rely on the transaction object for element removal, therefore, a combination of delete element + delete set from the abort path could result in restoring twice the refcount of the mapping.

Check for inactive element in the next generation for the delete element command in the abort path, skip restoring state if next generation bit has been already cleared. This is similar to the activate logic using the set walk iterator.

[ 6170.286929] ------------[ cut here ]------------ [ 6170.286939] WARNING: CPU: 6 PID: 790302 at net/netfilter/nftablesapi.c:2086 nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.287071] Modules linked in: [...] [ 6170.287633] CPU: 6 PID: 790302 Comm: kworker/6:2 Not tainted 6.9.0-rc3+ #365 [ 6170.287768] RIP: 0010:nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.287886] Code: df 48 8d 7d 58 e8 69 2e 3b df 48 8b 7d 58 e8 80 1b 37 df 48 8d 7d 68 e8 57 2e 3b df 48 8b 7d 68 e8 6e 1b 37 df 48 89 ef eb c4 <0f> 0b 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 0f [ 6170.287895] RSP: 0018:ffff888134b8fd08 EFLAGS: 00010202 [ 6170.287904] RAX: 0000000000000001 RBX: ffff888125bffb28 RCX: dffffc0000000000 [ 6170.287912] RDX: 0000000000000003 RSI: ffffffffa20298ab RDI: ffff88811ebe4750 [ 6170.287919] RBP: ffff88811ebe4700 R08: ffff88838e812650 R09: fffffbfff0623a55 [ 6170.287926] R10: ffffffff8311d2af R11: 0000000000000001 R12: ffff888125bffb10 [ 6170.287933] R13: ffff888125bffb10 R14: dead000000000122 R15: dead000000000100 [ 6170.287940] FS: 0000000000000000(0000) GS:ffff888390b00000(0000) knlGS:0000000000000000 [ 6170.287948] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6170.287955] CR2: 00007fd31fc00710 CR3: 0000000133f60004 CR4: 00000000001706f0 [ 6170.287962] Call Trace: [ 6170.287967] [ 6170.287973] ? warn+0x9f/0x1a0 [ 6170.287986] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288092] ? reportbug+0x1b1/0x1e0 [ 6170.287986] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288092] ? reportbug+0x1b1/0x1e0 [ 6170.288104] ? handlebug+0x3c/0x70 [ 6170.288112] ? excinvalidop+0x17/0x40 [ 6170.288120] ? asmexcinvalidop+0x1a/0x20 [ 6170.288132] ? nftableschaindestroy+0x2b/0x220 [nftables] [ 6170.288243] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288366] ? nftableschaindestroy+0x2b/0x220 [nftables] [ 6170.288483] nftablestransdestroywork+0x588/0x590 [nftables]

Other sources

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftables: fix memleak in map from abort path

The delete set command does not rely on the transaction object for element removal, therefore, a combination of delete element + delete set from the abort path could result in restoring twice the refcount of the mapping.

Check for inactive element in the next generation for the delete element command in the abort path, skip restoring state if next generation bit has been already cleared. This is similar to the activate logic using the set walk iterator.

[ 6170.286929] ------------[ cut here ]------------ [ 6170.286939] WARNING: CPU: 6 PID: 790302 at net/netfilter/nftablesapi.c:2086 nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.287071] Modules linked in: [...] [ 6170.287633] CPU: 6 PID: 790302 Comm: kworker/6:2 Not tainted 6.9.0-rc3+ #365 [ 6170.287768] RIP: 0010:nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.287886] Code: df 48 8d 7d 58 e8 69 2e 3b df 48 8b 7d 58 e8 80 1b 37 df 48 8d 7d 68 e8 57 2e 3b df 48 8b 7d 68 e8 6e 1b 37 df 48 89 ef eb c4 <0f> 0b 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 0f [ 6170.287895] RSP: 0018:ffff888134b8fd08 EFLAGS: 00010202 [ 6170.287904] RAX: 0000000000000001 RBX: ffff888125bffb28 RCX: dffffc0000000000 [ 6170.287912] RDX: 0000000000000003 RSI: ffffffffa20298ab RDI: ffff88811ebe4750 [ 6170.287919] RBP: ffff88811ebe4700 R08: ffff88838e812650 R09: fffffbfff0623a55 [ 6170.287926] R10: ffffffff8311d2af R11: 0000000000000001 R12: ffff888125bffb10 [ 6170.287933] R13: ffff888125bffb10 R14: dead000000000122 R15: dead000000000100 [ 6170.287940] FS: 0000000000000000(0000) GS:ffff888390b00000(0000) knlGS:0000000000000000 [ 6170.287948] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6170.287955] CR2: 00007fd31fc00710 CR3: 0000000133f60004 CR4: 00000000001706f0 [ 6170.287962] Call Trace: [ 6170.287967] <TASK> [ 6170.287973] ? warn+0x9f/0x1a0 [ 6170.287986] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288092] ? reportbug+0x1b1/0x1e0 [ 6170.287986] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288092] ? reportbug+0x1b1/0x1e0 [ 6170.288104] ? handlebug+0x3c/0x70 [ 6170.288112] ? excinvalidop+0x17/0x40 [ 6170.288120] ? asmexcinvalidop+0x1a/0x20 [ 6170.288132] ? nftableschaindestroy+0x2b/0x220 [nftables] [ 6170.288243] ? nftableschaindestroy+0x1f7/0x220 [nftables] [ 6170.288366] ? nftableschaindestroy+0x2b/0x220 [nftables] [ 6170.288483] nftablestransdestroywork+0x588/0x590 [nftables]

NVD

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftables: fix memleak in map from abort path

The Linux kernel CVE team has assigned CVE-2024-27011 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024050148-CVE-2024-27011-2c70@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
Linux Linux kernel>=4.12<6.8.8
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.22-16.12.25-1
redhat/kernel<6.8.8
6.8.8
redhat/kernel<6.9
6.9
Microsoft azl3 kernel 6.6.92.2-1
Microsoft azl3 kernel 6.6.64.2-9

Event History

May 1, 2024
CVE Published
via MITRE·05:29 AM
Data Sourced
via MITRE·05:29 AM
Description
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·06:38 PM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:45 PM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·12:16 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·04:08 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·04:08 AM
SeverityAffected Software
Updated
via Microsoft·04:08 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-27011?

CVE-2024-27011 has a medium severity due to potential memory leak vulnerabilities in the Linux kernel.

2

How do I fix CVE-2024-27011?

To fix CVE-2024-27011, update to kernel version 6.8.8 or 6.9 for Red Hat and 6.12.10-1 or 6.12.11-1 for Debian systems.

3

What systems are affected by CVE-2024-27011?

CVE-2024-27011 affects various versions of the Linux kernel, particularly versions before 6.8.8 and 6.9.

4

Is CVE-2024-27011 a critical vulnerability?

CVE-2024-27011 is not classified as critical, but it could lead to resource leaks that impact system stability.

5

What are the consequences of not mitigating CVE-2024-27011?

Failing to mitigate CVE-2024-27011 could result in memory leaks, which may degrade system performance over time.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203