# CVE-2023-52843: llc: verify mac len before reading mac header

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-05-21T15:31:41.872Z
- **Modified:** 2026-06-17T06:43:42.743Z

## Who should check

- Anyone running Linux \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 900a4418e3f66a32db6baaf23f92b99c20ae6535; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 9a3f9054a5227d7567cba1fb821df48ccecad10c; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< cbdcdf42d15dac74c7287679fb2a9d955f8feb1f; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 3a2653828ffc6101aef80bf58d5b77484239f779; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 352887b3edd007cf9b0abc30fe9d98622acd859b; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< f980e9a57dfb9530f1f4ee41a2420f2a256d7b29; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 0a720d0259ad3521ec6c9e4199f9f6fc75bac77a; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< ff5cb6a4f0c6d7fbdc84858323fb4b7af32cfd79; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 7b3ba18703a63f6fd487183b9262b08e5632da1b
- Anyone running Linux 2.6.25

## Description

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

llc: verify mac len before reading mac header

LLC reads the mac header with eth\_hdr without verifying that the skb
has an Ethernet header.

Syzbot was able to enter llc\_rcv on a tun device. Tun can insert
packets without mac len and with user configurable skb-\>protocol
(passing a tun\_pi header when not configuring IFF\_NO\_PI).

    BUG: KMSAN: uninit-value in llc\_station\_ac\_send\_test\_r net/llc/llc\_station.c:81 \[inline\]
    BUG: KMSAN: uninit-value in llc\_station\_rcv+0x6fb/0x1290 net/llc/llc\_station.c:111
    llc\_station\_ac\_send\_test\_r net/llc/llc\_station.c:81 \[inline\]
    llc\_station\_rcv+0x6fb/0x1290 net/llc/llc\_station.c:111
    llc\_rcv+0xc5d/0x14a0 net/llc/llc\_input.c:218
    \_\_netif\_receive\_skb\_one\_core net/core/dev.c:5523 \[inline\]
    \_\_netif\_receive\_skb+0x1a6/0x5a0 net/core/dev.c:5637
    netif\_receive\_skb\_internal net/core/dev.c:5723 \[inline\]
    netif\_receive\_skb+0x58/0x660 net/core/dev.c:5782
    tun\_rx\_batched+0x3ee/0x980 drivers/net/tun.c:1555
    tun\_get\_user+0x54c5/0x69c0 drivers/net/tun.c:2002

Add a mac\_len test before all three eth\_hdr(skb) calls under net/llc.

There are further uses in include/net/llc\_pdu.h. All these are
protected by a test skb-\>protocol == ETH\_P\_802\_2. Which does not
protect against this tun scenario.

But the mac\_len test added in this patch in llc\_fixup\_skb will
indirectly protect those too. That is called from llc\_rcv before any
other LLC code.

It is tempting to just add a blanket mac\_len check in llc\_rcv, but
not sure whether that could break valid LLC paths that do not assume
an Ethernet header. 802.2 LLC may be used on top of non-802.3
protocols in principle. The below referenced commit shows that used
to, on top of Token Ring.

At least one of the three eth\_hdr uses goes back to before the start
of git history. But the one that syzbot exercises is introduced in
this commit. That commit is old enough (2008), that effectively all
stable kernels should receive this.

## Affected and fixed versions

- Linux: \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 900a4418e3f66a32db6baaf23f92b99c20ae6535; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 9a3f9054a5227d7567cba1fb821df48ccecad10c; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< cbdcdf42d15dac74c7287679fb2a9d955f8feb1f; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 3a2653828ffc6101aef80bf58d5b77484239f779; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 352887b3edd007cf9b0abc30fe9d98622acd859b; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< f980e9a57dfb9530f1f4ee41a2420f2a256d7b29; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 0a720d0259ad3521ec6c9e4199f9f6fc75bac77a; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< ff5cb6a4f0c6d7fbdc84858323fb4b7af32cfd79; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 7b3ba18703a63f6fd487183b9262b08e5632da1b (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- Upgrade Linux to 7b3ba18703a63f6fd487183b9262b08e5632da1b 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-52843. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52843.md
Affected: Linux >= f83f1768f833cb45bc93429fdc552252a4f55ac3, < 900a4418e3f66a32db6baaf23f92b99c20ae6535; >= f83f1768f833cb45bc93429fdc552252a4f55ac3, < 9a3f9054a5227d7567cba1fb821df48ccecad10c; >= f83f1768f833cb45bc93429fdc552252a4f55ac3, < cbdcdf42d15dac74c7287679fb2a9d955f8feb1f; >= f83f1768f833cb45bc93429…
Fixed in: Linux 900a4418e3f66a32db6baaf23f92b99c20ae6535, Linux 9a3f9054a5227d7567cba1fb821df48ccecad10c, Linux 3a2653828ffc6101aef80bf58d5b77484239f779, Linux 352887b3edd007cf9b0abc30fe9d98622acd859b, Linux 0a720d0259ad3521ec6c9e4199f9f6fc75bac77a, Linux 7b3ba18703a63f6fd487183b9262b08e5632da1b

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-52843 being exploited?

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

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

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

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

Linux \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 900a4418e3f66a32db6baaf23f92b99c20ae6535; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 9a3f9054a5227d7567cba1fb821df48ccecad10c; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< cbdcdf42d15dac74c7287679fb2a9d955f8feb1f; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 3a2653828ffc6101aef80bf58d5b77484239f779; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 352887b3edd007cf9b0abc30fe9d98622acd859b; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< f980e9a57dfb9530f1f4ee41a2420f2a256d7b29; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 0a720d0259ad3521ec6c9e4199f9f6fc75bac77a; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< ff5cb6a4f0c6d7fbdc84858323fb4b7af32cfd79; \>= f83f1768f833cb45bc93429fdc552252a4f55ac3, \< 7b3ba18703a63f6fd487183b9262b08e5632da1b; Linux 2.6.25.

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

Yes. Fixed in Linux 900a4418e3f66a32db6baaf23f92b99c20ae6535, Linux 9a3f9054a5227d7567cba1fb821df48ccecad10c, Linux 3a2653828ffc6101aef80bf58d5b77484239f779, Linux 352887b3edd007cf9b0abc30fe9d98622acd859b, Linux 0a720d0259ad3521ec6c9e4199f9f6fc75bac77a, Linux 7b3ba18703a63f6fd487183b9262b08e5632da1b. Upgrade Linux to 7b3ba18703a63f6fd487183b9262b08e5632da1b or later.

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

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/900a4418e3f66a32db6baaf23f92b99c20ae6535>
- patch: <https://git.kernel.org/stable/c/9a3f9054a5227d7567cba1fb821df48ccecad10c>
- patch: <https://git.kernel.org/stable/c/cbdcdf42d15dac74c7287679fb2a9d955f8feb1f>
- patch: <https://git.kernel.org/stable/c/3a2653828ffc6101aef80bf58d5b77484239f779>
- patch: <https://git.kernel.org/stable/c/352887b3edd007cf9b0abc30fe9d98622acd859b>
- patch: <https://git.kernel.org/stable/c/f980e9a57dfb9530f1f4ee41a2420f2a256d7b29>
- patch: <https://git.kernel.org/stable/c/0a720d0259ad3521ec6c9e4199f9f6fc75bac77a>
- patch: <https://git.kernel.org/stable/c/ff5cb6a4f0c6d7fbdc84858323fb4b7af32cfd79>
- patch: <https://git.kernel.org/stable/c/7b3ba18703a63f6fd487183b9262b08e5632da1b>

## 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-52843>

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