# CVE-2024-56650: netfilter: x\_tables: fix LED ID check in led\_tg\_check()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2024-12-27T15:02:50.098Z
- **Modified:** 2026-10-15T02:17:08.870Z

## Who should check

- Anyone running Linux \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 147a42bb02de8735cb08476be6d0917987d022c2; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ad28612ebae1fcc1104bd432e99e99d87f6bfe09; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 36a9d94dac28beef6b8abba46ba8874320d3e800; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ab9916321c95f5280b72b4c5055e269f98627efe; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< a9bcc0b70d9baf3ff005874489a0dc9d023b54c3; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< c40c96d98e536fc1daaa125c2332b988615e30a4; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7
- Anyone running Linux 2.6.30

## Description

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

netfilter: x\_tables: fix LED ID check in led\_tg\_check()

Syzbot has reported the following BUG detected by KASAN:

BUG: KASAN: slab-out-of-bounds in strlen+0x58/0x70
Read of size 1 at addr ffff8881022da0c8 by task repro/5879
...
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x241/0x360
 ? \_\_pfx\_dump\_stack\_lvl+0x10/0x10
 ? \_\_pfx\_\_printk+0x10/0x10
 ? \_printk+0xd5/0x120
 ? \_\_virt\_addr\_valid+0x183/0x530
 ? \_\_virt\_addr\_valid+0x183/0x530
 print\_report+0x169/0x550
 ? \_\_virt\_addr\_valid+0x183/0x530
 ? \_\_virt\_addr\_valid+0x183/0x530
 ? \_\_virt\_addr\_valid+0x45f/0x530
 ? \_\_phys\_addr+0xba/0x170
 ? strlen+0x58/0x70
 kasan\_report+0x143/0x180
 ? strlen+0x58/0x70
 strlen+0x58/0x70
 kstrdup+0x20/0x80
 led\_tg\_check+0x18b/0x3c0
 xt\_check\_target+0x3bb/0xa40
 ? \_\_pfx\_xt\_check\_target+0x10/0x10
 ? stack\_depot\_save\_flags+0x6e4/0x830
 ? nft\_target\_init+0x174/0xc30
 nft\_target\_init+0x82d/0xc30
 ? \_\_pfx\_nft\_target\_init+0x10/0x10
 ? nf\_tables\_newrule+0x1609/0x2980
 ? nf\_tables\_newrule+0x1609/0x2980
 ? rcu\_is\_watching+0x15/0xb0
 ? nf\_tables\_newrule+0x1609/0x2980
 ? nf\_tables\_newrule+0x1609/0x2980
 ? \_\_kmalloc\_noprof+0x21a/0x400
 nf\_tables\_newrule+0x1860/0x2980
 ? \_\_pfx\_nf\_tables\_newrule+0x10/0x10
 ? \_\_nla\_parse+0x40/0x60
 nfnetlink\_rcv+0x14e5/0x2ab0
 ? \_\_pfx\_validate\_chain+0x10/0x10
 ? \_\_pfx\_nfnetlink\_rcv+0x10/0x10
 ? \_\_lock\_acquire+0x1384/0x2050
 ? netlink\_deliver\_tap+0x2e/0x1b0
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? netlink\_deliver\_tap+0x2e/0x1b0
 netlink\_unicast+0x7f8/0x990
 ? \_\_pfx\_netlink\_unicast+0x10/0x10
 ? \_\_virt\_addr\_valid+0x183/0x530
 ? \_\_check\_object\_size+0x48e/0x900
 netlink\_sendmsg+0x8e4/0xcb0
 ? \_\_pfx\_netlink\_sendmsg+0x10/0x10
 ? aa\_sock\_msg\_perm+0x91/0x160
 ? \_\_pfx\_netlink\_sendmsg+0x10/0x10
 \_\_sock\_sendmsg+0x223/0x270
 \_\_\_\_sys\_sendmsg+0x52a/0x7e0
 ? \_\_pfx\_\_\_\_\_sys\_sendmsg+0x10/0x10
 \_\_sys\_sendmsg+0x292/0x380
 ? \_\_pfx\_\_\_sys\_sendmsg+0x10/0x10
 ? lockdep\_hardirqs\_on\_prepare+0x43d/0x780
 ? \_\_pfx\_lockdep\_hardirqs\_on\_prepare+0x10/0x10
 ? exc\_page\_fault+0x590/0x8c0
 ? do\_syscall\_64+0xb6/0x230
 do\_syscall\_64+0xf3/0x230
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
...
 \</TASK\>

Since an invalid (without '\\0' byte at all) byte sequence may be passed
from userspace, add an extra check to ensure that such a sequence is
rejected as possible ID and so never passed to 'kstrdup()' and further.

## Affected and fixed versions

- Linux: \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 147a42bb02de8735cb08476be6d0917987d022c2; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ad28612ebae1fcc1104bd432e99e99d87f6bfe09; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 36a9d94dac28beef6b8abba46ba8874320d3e800; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ab9916321c95f5280b72b4c5055e269f98627efe; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< a9bcc0b70d9baf3ff005874489a0dc9d023b54c3; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< c40c96d98e536fc1daaa125c2332b988615e30a4; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56650. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56650.md
Affected: Linux >= 268cb38e1802db560c73167e643f14a3dcb4b07c, < 147a42bb02de8735cb08476be6d0917987d022c2; >= 268cb38e1802db560c73167e643f14a3dcb4b07c, < ad28612ebae1fcc1104bd432e99e99d87f6bfe09; >= 268cb38e1802db560c73167e643f14a3dcb4b07c, < 36a9d94dac28beef6b8abba46ba8874320d3e800; >= 268cb38e1802db560c73167…
Fixed in: Linux 147a42bb02de8735cb08476be6d0917987d022c2, Linux 36a9d94dac28beef6b8abba46ba8874320d3e800, Linux 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56650 being exploited?

There is no confirmed exploitation: CVE-2024-56650 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-56650?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56650?

Linux \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 147a42bb02de8735cb08476be6d0917987d022c2; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ad28612ebae1fcc1104bd432e99e99d87f6bfe09; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 36a9d94dac28beef6b8abba46ba8874320d3e800; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< ab9916321c95f5280b72b4c5055e269f98627efe; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< a9bcc0b70d9baf3ff005874489a0dc9d023b54c3; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< c40c96d98e536fc1daaa125c2332b988615e30a4; \>= 268cb38e1802db560c73167e643f14a3dcb4b07c, \< 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7; Linux 2.6.30.

### Is there a fix for CVE-2024-56650?

Yes. Fixed in Linux 147a42bb02de8735cb08476be6d0917987d022c2, Linux 36a9d94dac28beef6b8abba46ba8874320d3e800, Linux 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7. Upgrade Linux to 04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7 or later.

### How do I check if I'm affected by CVE-2024-56650?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/147a42bb02de8735cb08476be6d0917987d022c2>
- patch: <https://git.kernel.org/stable/c/ad28612ebae1fcc1104bd432e99e99d87f6bfe09>
- patch: <https://git.kernel.org/stable/c/36a9d94dac28beef6b8abba46ba8874320d3e800>
- patch: <https://git.kernel.org/stable/c/ab9916321c95f5280b72b4c5055e269f98627efe>
- patch: <https://git.kernel.org/stable/c/a9bcc0b70d9baf3ff005874489a0dc9d023b54c3>
- patch: <https://git.kernel.org/stable/c/c40c96d98e536fc1daaa125c2332b988615e30a4>
- patch: <https://git.kernel.org/stable/c/04317f4eb2aad312ad85c1a17ad81fe75f1f9bc7>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56650>

HTML: <https://flawdb.com/CVE-2024-56650> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56650>
