# CVE-2023-53354: skbuff: skb\_segment, Call zero copy functions before using skbuff frags

> 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, CNA) `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.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-17T14:56:44.388Z
- **Modified:** 2026-08-05T09:13:37.623Z

## Who should check

- Anyone running Linux \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< fcab3f661dbfd88e27ddbbe65368f3fa2d823175; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d44403ec0676317b7f7edf2a035bb219fee3304e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 8836c266201c29a5acb4f582227686f47b65ad61; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d5790386595d06ea9decfd9ba5f1ea48cf09aa02; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 04c3eee4e13f60bf6f9a366ad39f88a01a57166e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< f99006e840a4dbc8f5a34cecc6b5b26c73ef49bb; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 6c26ed3c6abe86ddab0510529000b970b05c9b40; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 2ea35288c83b3d501a88bc17f2df8f176b5cc96f
- Anyone running Linux 4.16

## Description

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

skbuff: skb\_segment, Call zero copy functions before using skbuff frags

Commit bf5c25d60861 ("skbuff: in skb\_segment, call zerocopy functions
once per nskb") added the call to zero copy functions in skb\_segment().
The change introduced a bug in skb\_segment() because skb\_orphan\_frags()
may possibly change the number of fragments or allocate new fragments
altogether leaving nrfrags and frag to point to the old values. This can
cause a panic with stacktrace like the one below.

\[  193.894380\] BUG: kernel NULL pointer dereference, address: 00000000000000bc
\[  193.895273\] CPU: 13 PID: 18164 Comm: vh-net-17428 Kdump: loaded Tainted: G           O      5.15.123+ \#26
\[  193.903919\] RIP: 0010:skb\_segment+0xb0e/0x12f0
\[  194.021892\] Call Trace:
\[  194.027422\]  \<TASK\>
\[  194.072861\]  tcp\_gso\_segment+0x107/0x540
\[  194.082031\]  inet\_gso\_segment+0x15c/0x3d0
\[  194.090783\]  skb\_mac\_gso\_segment+0x9f/0x110
\[  194.095016\]  \_\_skb\_gso\_segment+0xc1/0x190
\[  194.103131\]  netem\_enqueue+0x290/0xb10 \[sch\_netem\]
\[  194.107071\]  dev\_qdisc\_enqueue+0x16/0x70
\[  194.110884\]  \_\_dev\_queue\_xmit+0x63b/0xb30
\[  194.121670\]  bond\_start\_xmit+0x159/0x380 \[bonding\]
\[  194.128506\]  dev\_hard\_start\_xmit+0xc3/0x1e0
\[  194.131787\]  \_\_dev\_queue\_xmit+0x8a0/0xb30
\[  194.138225\]  macvlan\_start\_xmit+0x4f/0x100 \[macvlan\]
\[  194.141477\]  dev\_hard\_start\_xmit+0xc3/0x1e0
\[  194.144622\]  sch\_direct\_xmit+0xe3/0x280
\[  194.147748\]  \_\_dev\_queue\_xmit+0x54a/0xb30
\[  194.154131\]  tap\_get\_user+0x2a8/0x9c0 \[tap\]
\[  194.157358\]  tap\_sendmsg+0x52/0x8e0 \[tap\]
\[  194.167049\]  handle\_tx\_zerocopy+0x14e/0x4c0 \[vhost\_net\]
\[  194.173631\]  handle\_tx+0xcd/0xe0 \[vhost\_net\]
\[  194.176959\]  vhost\_worker+0x76/0xb0 \[vhost\]
\[  194.183667\]  kthread+0x118/0x140
\[  194.190358\]  ret\_from\_fork+0x1f/0x30
\[  194.193670\]  \</TASK\>

In this case calling skb\_orphan\_frags() updated nr\_frags leaving nrfrags
local variable in skb\_segment() stale. This resulted in the code hitting
i \>= nrfrags prematurely and trying to move to next frag\_skb using
list\_skb pointer, which was NULL, and caused kernel panic. Move the call
to zero copy functions before using frags and nr\_frags.

## Affected and fixed versions

- Linux: \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< fcab3f661dbfd88e27ddbbe65368f3fa2d823175; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d44403ec0676317b7f7edf2a035bb219fee3304e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 8836c266201c29a5acb4f582227686f47b65ad61; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d5790386595d06ea9decfd9ba5f1ea48cf09aa02; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 04c3eee4e13f60bf6f9a366ad39f88a01a57166e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< f99006e840a4dbc8f5a34cecc6b5b26c73ef49bb; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 6c26ed3c6abe86ddab0510529000b970b05c9b40; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 2ea35288c83b3d501a88bc17f2df8f176b5cc96f (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53354.md
Affected: Linux >= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, < fcab3f661dbfd88e27ddbbe65368f3fa2d823175; >= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, < d44403ec0676317b7f7edf2a035bb219fee3304e; >= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, < 8836c266201c29a5acb4f582227686f47b65ad61; >= bf5c25d608613eaf4dcdba5…
Fixed in: Linux 8836c266201c29a5acb4f582227686f47b65ad61, Linux 04c3eee4e13f60bf6f9a366ad39f88a01a57166e, Linux 6c26ed3c6abe86ddab0510529000b970b05c9b40, Linux 2ea35288c83b3d501a88bc17f2df8f176b5cc96f

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

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

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

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

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

Linux \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< fcab3f661dbfd88e27ddbbe65368f3fa2d823175; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d44403ec0676317b7f7edf2a035bb219fee3304e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 8836c266201c29a5acb4f582227686f47b65ad61; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< d5790386595d06ea9decfd9ba5f1ea48cf09aa02; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 04c3eee4e13f60bf6f9a366ad39f88a01a57166e; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< f99006e840a4dbc8f5a34cecc6b5b26c73ef49bb; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 6c26ed3c6abe86ddab0510529000b970b05c9b40; \>= bf5c25d608613eaf4dcdba5a9cac5b2afe67d635, \< 2ea35288c83b3d501a88bc17f2df8f176b5cc96f; Linux 4.16.

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

Yes. Fixed in Linux 8836c266201c29a5acb4f582227686f47b65ad61, Linux 04c3eee4e13f60bf6f9a366ad39f88a01a57166e, Linux 6c26ed3c6abe86ddab0510529000b970b05c9b40, Linux 2ea35288c83b3d501a88bc17f2df8f176b5cc96f. Upgrade Linux to 2ea35288c83b3d501a88bc17f2df8f176b5cc96f or later.

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

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/fcab3f661dbfd88e27ddbbe65368f3fa2d823175>
- patch: <https://git.kernel.org/stable/c/d44403ec0676317b7f7edf2a035bb219fee3304e>
- patch: <https://git.kernel.org/stable/c/8836c266201c29a5acb4f582227686f47b65ad61>
- patch: <https://git.kernel.org/stable/c/d5790386595d06ea9decfd9ba5f1ea48cf09aa02>
- patch: <https://git.kernel.org/stable/c/04c3eee4e13f60bf6f9a366ad39f88a01a57166e>
- patch: <https://git.kernel.org/stable/c/f99006e840a4dbc8f5a34cecc6b5b26c73ef49bb>
- patch: <https://git.kernel.org/stable/c/6c26ed3c6abe86ddab0510529000b970b05c9b40>
- patch: <https://git.kernel.org/stable/c/2ea35288c83b3d501a88bc17f2df8f176b5cc96f>

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

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