# CVE-2023-53785: mt76: mt7921: don't assume adequate headroom for SDIO headers

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; 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.43% (percentile 29, 2026-11-26)
- **Published:** 2025-12-09T00:00:40.505Z
- **Modified:** 2026-10-15T22:17:48.557Z

## Who should check

- Anyone running Linux \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 5c8bbb79c7cbca65534badf360f3b1145759c7bc; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 414c0c04703423b78bc9dea1aa6493334dc61f6e; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 98c4d0abf5c478db1ad126ff0c187dbb84c0803c
- Anyone running Linux 5.12

## Description

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

mt76: mt7921: don't assume adequate headroom for SDIO headers

mt7921\_usb\_sdio\_tx\_prepare\_skb() calls mt7921\_usb\_sdio\_write\_txwi() and
mt7921\_skb\_add\_usb\_sdio\_hdr(), both of which blindly assume that
adequate headroom will be available in the passed skb. This assumption
typically is satisfied when the skb was allocated in the net core for
transmission via the mt7921 netdev (although even that is only an
optimization and is not strictly guaranteed), but the assumption is
sometimes not satisfied when the skb originated in the receive path of
another netdev and was passed through to the mt7921, such as by the
bridge layer. Blindly prepending bytes to an skb is always wrong.

This commit introduces a call to skb\_cow\_head() before the call to
mt7921\_usb\_sdio\_write\_txwi() in mt7921\_usb\_sdio\_tx\_prepare\_skb() to
ensure that at least MT\_SDIO\_TXD\_SIZE + MT\_SDIO\_HDR\_SIZE bytes can be
pushed onto the skb.

Without this fix, I can trivially cause kernel panics by bridging an
MT7921AU-based USB 802.11ax interface with an Ethernet interface on an
Intel Atom-based x86 system using its onboard RTL8169 PCI Ethernet
adapter and also on an ARM-based Raspberry Pi 1 using its onboard
SMSC9512 USB Ethernet adapter. Note that the panics do not occur in
every system configuration, as they occur only if the receiving netdev
leaves less headroom in its received skbs than the mt7921 needs for its
SDIO headers.

Here is an example stack trace of this panic on Raspberry Pi OS Lite
2023-02-21 running kernel 6.1.24+ \[1\]:

 skb\_panic from skb\_push+0x44/0x48
 skb\_push from mt7921\_usb\_sdio\_tx\_prepare\_skb+0xd4/0x190 \[mt7921\_common\]
 mt7921\_usb\_sdio\_tx\_prepare\_skb \[mt7921\_common\] from mt76u\_tx\_queue\_skb+0x94/0x1d0 \[mt76\_usb\]
 mt76u\_tx\_queue\_skb \[mt76\_usb\] from \_\_mt76\_tx\_queue\_skb+0x4c/0xc8 \[mt76\]
 \_\_mt76\_tx\_queue\_skb \[mt76\] from mt76\_txq\_schedule.part.0+0x13c/0x398 \[mt76\]
 mt76\_txq\_schedule.part.0 \[mt76\] from mt76\_txq\_schedule\_all+0x24/0x30 \[mt76\]
 mt76\_txq\_schedule\_all \[mt76\] from mt7921\_tx\_worker+0x58/0xf4 \[mt7921\_common\]
 mt7921\_tx\_worker \[mt7921\_common\] from \_\_mt76\_worker\_fn+0x9c/0xec \[mt76\]
 \_\_mt76\_worker\_fn \[mt76\] from kthread+0xbc/0xe0
 kthread from ret\_from\_fork+0x14/0x34

After this fix, bridging the mt7921 interface works fine on both of my
previously problematic systems.

\[1\] https://github.com/raspberrypi/firmware/tree/5c276f55a4b21345cd4d6200a504ee991851ff7a

## Affected and fixed versions

- Linux: \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 5c8bbb79c7cbca65534badf360f3b1145759c7bc; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 414c0c04703423b78bc9dea1aa6493334dc61f6e; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 98c4d0abf5c478db1ad126ff0c187dbb84c0803c (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53785.md
Affected: Linux >= e0f9fdda81bd32371ddac9222487e612027d8de2, < 5c8bbb79c7cbca65534badf360f3b1145759c7bc; >= e0f9fdda81bd32371ddac9222487e612027d8de2, < 414c0c04703423b78bc9dea1aa6493334dc61f6e; >= e0f9fdda81bd32371ddac9222487e612027d8de2, < 98c4d0abf5c478db1ad126ff0c187dbb84c0803c; Linux 5.12
Fixed in: Linux 5c8bbb79c7cbca65534badf360f3b1145759c7bc, Linux 414c0c04703423b78bc9dea1aa6493334dc61f6e, Linux 98c4d0abf5c478db1ad126ff0c187dbb84c0803c

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

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

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

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

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

Linux \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 5c8bbb79c7cbca65534badf360f3b1145759c7bc; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 414c0c04703423b78bc9dea1aa6493334dc61f6e; \>= e0f9fdda81bd32371ddac9222487e612027d8de2, \< 98c4d0abf5c478db1ad126ff0c187dbb84c0803c; Linux 5.12.

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

Yes. Fixed in Linux 5c8bbb79c7cbca65534badf360f3b1145759c7bc, Linux 414c0c04703423b78bc9dea1aa6493334dc61f6e, Linux 98c4d0abf5c478db1ad126ff0c187dbb84c0803c. Upgrade Linux to 98c4d0abf5c478db1ad126ff0c187dbb84c0803c or later.

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

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

- other: <https://git.kernel.org/stable/c/5c8bbb79c7cbca65534badf360f3b1145759c7bc>
- other: <https://git.kernel.org/stable/c/414c0c04703423b78bc9dea1aa6493334dc61f6e>
- other: <https://git.kernel.org/stable/c/98c4d0abf5c478db1ad126ff0c187dbb84c0803c>

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

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