Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2023-52906 — kernel

🟠 CVSS 7.8 — High ✅ No Known Exploit NVD
7.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

net/sched: act_mpls: Fix warning during failed attribute validation

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

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2023-52906 is recorded against 2 packages.

  • kernel (from 5.16.0 up to 6.1.7)
  • linux-kernel

Timeline and source

Published on 21 August 2024 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2023-52906 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity High
CVSS Score 7.8
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-08-21
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 5.16.0 6.1.7
linux-kernel — —

Similar Threats

Site Security Check

Is kernel part of your stack?

CVE-2023-52906 is rated CVSS 7.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2023
✓