# CVE-2023-53667: net: cdc\_ncm: Deal with too low values of dwNtbOutMaxSize

> 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-07T15:21:25.185Z
- **Modified:** 2026-11-05T21:17:31.143Z

## Who should check

- Anyone running Linux \>= 289507d3364f96f4b8814726917d572f71350d87, \< 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776; \>= 289507d3364f96f4b8814726917d572f71350d87, \< bf415bfe7573596ac213b4fd1da9e62cfc9a9413; \>= 289507d3364f96f4b8814726917d572f71350d87, \< ff484163dfb61b58f23e4dbd007de1094427669c; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 42b78c8cc774b47023d6d16d96d54cc7015e4a07; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 9be921854e983a81a0aeeae5febcd87093086e46; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 6147745d43ff4e0d2c542e5b93e398ef0ee4db00; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 72d0240b0ee4794efc683975c213e4b384fea733; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 7e01c7f7046efc2c7c192c3619db43292b98e997
- Anyone running Linux 3.16

## Description

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

net: cdc\_ncm: Deal with too low values of dwNtbOutMaxSize

Currently in cdc\_ncm\_check\_tx\_max(), if dwNtbOutMaxSize is lower than
the calculated "min" value, but greater than zero, the logic sets
tx\_max to dwNtbOutMaxSize. This is then used to allocate a new SKB in
cdc\_ncm\_fill\_tx\_frame() where all the data is handled.

For small values of dwNtbOutMaxSize the memory allocated during
alloc\_skb(dwNtbOutMaxSize, GFP\_ATOMIC) will have the same size, due to
how size is aligned at alloc time:
	size = SKB\_DATA\_ALIGN(size);
        size += SKB\_DATA\_ALIGN(sizeof(struct skb\_shared\_info));
Thus we hit the same bug that we tried to squash with
commit 2be6d4d16a084 ("net: cdc\_ncm: Allow for dwNtbOutMaxSize to be unset or zero")

Low values of dwNtbOutMaxSize do not cause an issue presently because at
alloc\_skb() time more memory (512b) is allocated than required for the
SKB headers alone (320b), leaving some space (512b - 320b = 192b)
for CDC data (172b).

However, if more elements (for example 3 x u64 = \[24b\]) were added to
one of the SKB header structs, say 'struct skb\_shared\_info',
increasing its original size (320b \[320b aligned\]) to something larger
(344b \[384b aligned\]), then suddenly the CDC data (172b) no longer
fits in the spare SKB data area (512b - 384b = 128b).

Consequently the SKB bounds checking semantics fails and panics:

skbuff: skb\_over\_panic: text:ffffffff831f755b len:184 put:172 head:ffff88811f1c6c00 data:ffff88811f1c6c00 tail:0xb8 end:0x80 dev:\<NULL\>
------------\[ cut here \]------------
kernel BUG at net/core/skbuff.c:113!
invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN
CPU: 0 PID: 57 Comm: kworker/0:2 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: mld mld\_ifc\_work
RIP: 0010:skb\_panic net/core/skbuff.c:113 \[inline\]
RIP: 0010:skb\_over\_panic+0x14c/0x150 net/core/skbuff.c:118
\[snip\]
Call Trace:
 \<TASK\>
 skb\_put+0x151/0x210 net/core/skbuff.c:2047
 skb\_put\_zero include/linux/skbuff.h:2422 \[inline\]
 cdc\_ncm\_ndp16 drivers/net/usb/cdc\_ncm.c:1131 \[inline\]
 cdc\_ncm\_fill\_tx\_frame+0x11ab/0x3da0 drivers/net/usb/cdc\_ncm.c:1308
 cdc\_ncm\_tx\_fixup+0xa3/0x100

Deal with too low values of dwNtbOutMaxSize, clamp it in the range
\[USB\_CDC\_NCM\_NTB\_MIN\_OUT\_SIZE, CDC\_NCM\_NTB\_MAX\_SIZE\_TX\]. We ensure
enough data space is allocated to handle CDC data by making sure
dwNtbOutMaxSize is not smaller than USB\_CDC\_NCM\_NTB\_MIN\_OUT\_SIZE.

## Affected and fixed versions

- Linux: \>= 289507d3364f96f4b8814726917d572f71350d87, \< 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776; \>= 289507d3364f96f4b8814726917d572f71350d87, \< bf415bfe7573596ac213b4fd1da9e62cfc9a9413; \>= 289507d3364f96f4b8814726917d572f71350d87, \< ff484163dfb61b58f23e4dbd007de1094427669c; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 42b78c8cc774b47023d6d16d96d54cc7015e4a07; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 9be921854e983a81a0aeeae5febcd87093086e46; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 6147745d43ff4e0d2c542e5b93e398ef0ee4db00; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 72d0240b0ee4794efc683975c213e4b384fea733; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 7e01c7f7046efc2c7c192c3619db43292b98e997 (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53667.md
Affected: Linux >= 289507d3364f96f4b8814726917d572f71350d87, < 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776; >= 289507d3364f96f4b8814726917d572f71350d87, < bf415bfe7573596ac213b4fd1da9e62cfc9a9413; >= 289507d3364f96f4b8814726917d572f71350d87, < ff484163dfb61b58f23e4dbd007de1094427669c; >= 289507d3364f96f4b881472…
Fixed in: Linux 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776, Linux 42b78c8cc774b47023d6d16d96d54cc7015e4a07, Linux 9be921854e983a81a0aeeae5febcd87093086e46, Linux 6147745d43ff4e0d2c542e5b93e398ef0ee4db00, Linux 72d0240b0ee4794efc683975c213e4b384fea733, Linux 7e01c7f7046efc2c7c192c3619db43292b98e997

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

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

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

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

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

Linux \>= 289507d3364f96f4b8814726917d572f71350d87, \< 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776; \>= 289507d3364f96f4b8814726917d572f71350d87, \< bf415bfe7573596ac213b4fd1da9e62cfc9a9413; \>= 289507d3364f96f4b8814726917d572f71350d87, \< ff484163dfb61b58f23e4dbd007de1094427669c; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 42b78c8cc774b47023d6d16d96d54cc7015e4a07; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 9be921854e983a81a0aeeae5febcd87093086e46; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 6147745d43ff4e0d2c542e5b93e398ef0ee4db00; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 72d0240b0ee4794efc683975c213e4b384fea733; \>= 289507d3364f96f4b8814726917d572f71350d87, \< 7e01c7f7046efc2c7c192c3619db43292b98e997; Linux 3.16.

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

Yes. Fixed in Linux 2334ff0b343ba6ba7a6c0586fcc83992bbbc1776, Linux 42b78c8cc774b47023d6d16d96d54cc7015e4a07, Linux 9be921854e983a81a0aeeae5febcd87093086e46, Linux 6147745d43ff4e0d2c542e5b93e398ef0ee4db00, Linux 72d0240b0ee4794efc683975c213e4b384fea733, Linux 7e01c7f7046efc2c7c192c3619db43292b98e997. Upgrade Linux to 7e01c7f7046efc2c7c192c3619db43292b98e997 or later.

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

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/2334ff0b343ba6ba7a6c0586fcc83992bbbc1776>
- patch: <https://git.kernel.org/stable/c/bf415bfe7573596ac213b4fd1da9e62cfc9a9413>
- patch: <https://git.kernel.org/stable/c/ff484163dfb61b58f23e4dbd007de1094427669c>
- patch: <https://git.kernel.org/stable/c/42b78c8cc774b47023d6d16d96d54cc7015e4a07>
- patch: <https://git.kernel.org/stable/c/9be921854e983a81a0aeeae5febcd87093086e46>
- patch: <https://git.kernel.org/stable/c/6147745d43ff4e0d2c542e5b93e398ef0ee4db00>
- patch: <https://git.kernel.org/stable/c/72d0240b0ee4794efc683975c213e4b384fea733>
- patch: <https://git.kernel.org/stable/c/7e01c7f7046efc2c7c192c3619db43292b98e997>

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

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