# CVE-2023-52906: net/sched: act\_mpls: Fix warning during failed attribute validation

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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-26)
- **Published:** 2024-08-21T06:10:47.121Z
- **Modified:** 2026-06-17T06:43:54.353Z

## Who should check

- Anyone running Linux \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 2b157c3c5d6b8ddca48d53c9e662032f65af8d61; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 453277feb41c2235cf2c0de9209eef962c401457; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e2c38827cdc6fdd3bb375c8607fc04d289756f9; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 8a97b544b98e44f596219ebb290fd2ba2fd5d644; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e17f99220d111ea031b44153fdfe364b0024ff2
- Anyone running Linux 5.3

## Description

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

net/sched: act\_mpls: Fix warning during failed attribute validation

The 'TCA\_MPLS\_LABEL' attribute is of 'NLA\_U32' type, but has a
validation type of 'NLA\_VALIDATE\_FUNCTION'. This is an invalid
combination according to the comment above 'struct nla\_policy':

"
Meaning of \`validate' field, use via NLA\_POLICY\_VALIDATE\_FN:
   NLA\_BINARY           Validation function called for the attribute.
   All other            Unused - but note that it's a union
"

This can trigger the warning \[1\] in nla\_get\_range\_unsigned() when
validation of the attribute fails. Despite being of 'NLA\_U32' type, the
associated 'min'/'max' fields in the policy are negative as they are
aliased by the 'validate' field.

Fix by changing the attribute type to 'NLA\_BINARY' which is consistent
with the above comment and all other users of NLA\_POLICY\_VALIDATE\_FN().
As a result, move the length validation to the validation function.

No regressions in MPLS tests:

 \# ./tdc.py -f tc-tests/actions/mpls.json
 \[...\]
 \# echo $?
 0

\[1\]
WARNING: CPU: 0 PID: 17743 at lib/nlattr.c:118
nla\_get\_range\_unsigned+0x1d8/0x1e0 lib/nlattr.c:117
Modules linked in:
CPU: 0 PID: 17743 Comm: syz-executor.0 Not tainted 6.1.0-rc8 \#3
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.13.0-48-gd9c812dda519-prebuilt.qemu.org 04/01/2014
RIP: 0010:nla\_get\_range\_unsigned+0x1d8/0x1e0 lib/nlattr.c:117
\[...\]
Call Trace:
 \<TASK\>
 \_\_netlink\_policy\_dump\_write\_attr+0x23d/0x990 net/netlink/policy.c:310
 netlink\_policy\_dump\_write\_attr+0x22/0x30 net/netlink/policy.c:411
 netlink\_ack\_tlv\_fill net/netlink/af\_netlink.c:2454 \[inline\]
 netlink\_ack+0x546/0x760 net/netlink/af\_netlink.c:2506
 netlink\_rcv\_skb+0x1b7/0x240 net/netlink/af\_netlink.c:2546
 rtnetlink\_rcv+0x18/0x20 net/core/rtnetlink.c:6109
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1319 \[inline\]
 netlink\_unicast+0x5e9/0x6b0 net/netlink/af\_netlink.c:1345
 netlink\_sendmsg+0x739/0x860 net/netlink/af\_netlink.c:1921
 sock\_sendmsg\_nosec net/socket.c:714 \[inline\]
 sock\_sendmsg net/socket.c:734 \[inline\]
 \_\_\_\_sys\_sendmsg+0x38f/0x500 net/socket.c:2482
 \_\_\_sys\_sendmsg net/socket.c:2536 \[inline\]
 \_\_sys\_sendmsg+0x197/0x230 net/socket.c:2565
 \_\_do\_sys\_sendmsg net/socket.c:2574 \[inline\]
 \_\_se\_sys\_sendmsg net/socket.c:2572 \[inline\]
 \_\_x64\_sys\_sendmsg+0x42/0x50 net/socket.c:2572
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 2b157c3c5d6b8ddca48d53c9e662032f65af8d61; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 453277feb41c2235cf2c0de9209eef962c401457; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e2c38827cdc6fdd3bb375c8607fc04d289756f9; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 8a97b544b98e44f596219ebb290fd2ba2fd5d644; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e17f99220d111ea031b44153fdfe364b0024ff2 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 9e17f99220d111ea031b44153fdfe364b0024ff2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52906.md
Affected: Linux >= 2a2ea50870baa3fb4de0872c5b60828138654ca7, < 2b157c3c5d6b8ddca48d53c9e662032f65af8d61; >= 2a2ea50870baa3fb4de0872c5b60828138654ca7, < 453277feb41c2235cf2c0de9209eef962c401457; >= 2a2ea50870baa3fb4de0872c5b60828138654ca7, < 9e2c38827cdc6fdd3bb375c8607fc04d289756f9; >= 2a2ea50870baa3fb4de0872…
Fixed in: Linux 2b157c3c5d6b8ddca48d53c9e662032f65af8d61, Linux 453277feb41c2235cf2c0de9209eef962c401457, Linux 9e2c38827cdc6fdd3bb375c8607fc04d289756f9, Linux 8a97b544b98e44f596219ebb290fd2ba2fd5d644, Linux 9e17f99220d111ea031b44153fdfe364b0024ff2

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-2023-52906 being exploited?

There is no confirmed exploitation: CVE-2023-52906 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-26).

### How serious is CVE-2023-52906?

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

### Which versions are affected by CVE-2023-52906?

Linux \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 2b157c3c5d6b8ddca48d53c9e662032f65af8d61; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 453277feb41c2235cf2c0de9209eef962c401457; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e2c38827cdc6fdd3bb375c8607fc04d289756f9; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 8a97b544b98e44f596219ebb290fd2ba2fd5d644; \>= 2a2ea50870baa3fb4de0872c5b60828138654ca7, \< 9e17f99220d111ea031b44153fdfe364b0024ff2; Linux 5.3.

### Is there a fix for CVE-2023-52906?

Yes. Fixed in Linux 2b157c3c5d6b8ddca48d53c9e662032f65af8d61, Linux 453277feb41c2235cf2c0de9209eef962c401457, Linux 9e2c38827cdc6fdd3bb375c8607fc04d289756f9, Linux 8a97b544b98e44f596219ebb290fd2ba2fd5d644, Linux 9e17f99220d111ea031b44153fdfe364b0024ff2. Upgrade Linux to 9e17f99220d111ea031b44153fdfe364b0024ff2 or later.

### How do I check if I'm affected by CVE-2023-52906?

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/2b157c3c5d6b8ddca48d53c9e662032f65af8d61>
- patch: <https://git.kernel.org/stable/c/453277feb41c2235cf2c0de9209eef962c401457>
- patch: <https://git.kernel.org/stable/c/9e2c38827cdc6fdd3bb375c8607fc04d289756f9>
- patch: <https://git.kernel.org/stable/c/8a97b544b98e44f596219ebb290fd2ba2fd5d644>
- patch: <https://git.kernel.org/stable/c/9e17f99220d111ea031b44153fdfe364b0024ff2>

## 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-2023-52906>

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