# CVE-2023-54114: net: nsh: Use correct mac\_offset to unwind gso skb in nsh\_gso\_segment()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:06:36.214Z
- **Modified:** 2026-06-17T06:46:49.610Z

## Who should check

- Anyone running Linux \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 2f88c8d38ecf5ed0273f99a067246899ba499eb2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< d2309e0cb27b6871b273fbc1725e93be62570d86; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 435855b0831b351cb72cb38369ee33122ce9574c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 02b20e0bc0c2628539e9e518dc342787c3332de2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cdd8160dcda1fed2028a5f96575a84afc23aff7d; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 6fbedf987b6b8ed54a50e2205d998eb2c8be72f9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cb38e62922aa3991793344b5a5870e7291c74a44; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< c83b49383b595be50647f0c764a48c78b5f3c4f8
- Anyone running Linux 4.14

## Description

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

net: nsh: Use correct mac\_offset to unwind gso skb in nsh\_gso\_segment()

As the call trace shows, skb\_panic was caused by wrong skb-\>mac\_header
in nsh\_gso\_segment():

invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN PTI
CPU: 3 PID: 2737 Comm: syz Not tainted 6.3.0-next-20230505 \#1
RIP: 0010:skb\_panic+0xda/0xe0
call Trace:
 skb\_push+0x91/0xa0
 nsh\_gso\_segment+0x4f3/0x570
 skb\_mac\_gso\_segment+0x19e/0x270
 \_\_skb\_gso\_segment+0x1e8/0x3c0
 validate\_xmit\_skb+0x452/0x890
 validate\_xmit\_skb\_list+0x99/0xd0
 sch\_direct\_xmit+0x294/0x7c0
 \_\_dev\_queue\_xmit+0x16f0/0x1d70
 packet\_xmit+0x185/0x210
 packet\_snd+0xc15/0x1170
 packet\_sendmsg+0x7b/0xa0
 sock\_sendmsg+0x14f/0x160

The root cause is:
nsh\_gso\_segment() use skb-\>network\_header - nhoff to reset mac\_header
in skb\_gso\_error\_unwind() if inner-layer protocol gso fails.
However, skb-\>network\_header may be reset by inner-layer protocol
gso function e.g. mpls\_gso\_segment. skb-\>mac\_header reset by the
inaccurate network\_header will be larger than skb headroom.

nsh\_gso\_segment
    nhoff = skb-\>network\_header - skb-\>mac\_header;
    \_\_skb\_pull(skb,nsh\_len)
    skb\_mac\_gso\_segment
        mpls\_gso\_segment
            skb\_reset\_network\_header(skb);//skb-\>network\_header+=nsh\_len
            return -EINVAL;
    skb\_gso\_error\_unwind
        skb\_push(skb, nsh\_len);
        skb-\>mac\_header = skb-\>network\_header - nhoff;
        // skb-\>mac\_header \> skb-\>headroom, cause skb\_push panic

Use correct mac\_offset to restore mac\_header and get rid of nhoff.

## Affected and fixed versions

- Linux: \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 2f88c8d38ecf5ed0273f99a067246899ba499eb2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< d2309e0cb27b6871b273fbc1725e93be62570d86; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 435855b0831b351cb72cb38369ee33122ce9574c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 02b20e0bc0c2628539e9e518dc342787c3332de2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cdd8160dcda1fed2028a5f96575a84afc23aff7d; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 6fbedf987b6b8ed54a50e2205d998eb2c8be72f9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cb38e62922aa3991793344b5a5870e7291c74a44; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< c83b49383b595be50647f0c764a48c78b5f3c4f8 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54114. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54114.md
Affected: Linux >= c411ed854584a71b0e86ac3019b60e4789d88086, < 2f88c8d38ecf5ed0273f99a067246899ba499eb2; >= c411ed854584a71b0e86ac3019b60e4789d88086, < d2309e0cb27b6871b273fbc1725e93be62570d86; >= c411ed854584a71b0e86ac3019b60e4789d88086, < 435855b0831b351cb72cb38369ee33122ce9574c; >= c411ed854584a71b0e86ac3…
Fixed in: Linux 2f88c8d38ecf5ed0273f99a067246899ba499eb2, Linux 435855b0831b351cb72cb38369ee33122ce9574c, Linux 02b20e0bc0c2628539e9e518dc342787c3332de2, Linux 6fbedf987b6b8ed54a50e2205d998eb2c8be72f9

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 2f88c8d38ecf5ed0273f99a067246899ba499eb2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< d2309e0cb27b6871b273fbc1725e93be62570d86; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 435855b0831b351cb72cb38369ee33122ce9574c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 02b20e0bc0c2628539e9e518dc342787c3332de2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cdd8160dcda1fed2028a5f96575a84afc23aff7d; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 6fbedf987b6b8ed54a50e2205d998eb2c8be72f9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< cb38e62922aa3991793344b5a5870e7291c74a44; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< c83b49383b595be50647f0c764a48c78b5f3c4f8; Linux 4.14.

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

Yes. Fixed in Linux 2f88c8d38ecf5ed0273f99a067246899ba499eb2, Linux 435855b0831b351cb72cb38369ee33122ce9574c, Linux 02b20e0bc0c2628539e9e518dc342787c3332de2, Linux 6fbedf987b6b8ed54a50e2205d998eb2c8be72f9. No fix listed yet: follow the vendor advisory.

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

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/2f88c8d38ecf5ed0273f99a067246899ba499eb2>
- other: <https://git.kernel.org/stable/c/d2309e0cb27b6871b273fbc1725e93be62570d86>
- other: <https://git.kernel.org/stable/c/435855b0831b351cb72cb38369ee33122ce9574c>
- other: <https://git.kernel.org/stable/c/02b20e0bc0c2628539e9e518dc342787c3332de2>
- other: <https://git.kernel.org/stable/c/cdd8160dcda1fed2028a5f96575a84afc23aff7d>
- other: <https://git.kernel.org/stable/c/6fbedf987b6b8ed54a50e2205d998eb2c8be72f9>
- other: <https://git.kernel.org/stable/c/cb38e62922aa3991793344b5a5870e7291c74a44>
- other: <https://git.kernel.org/stable/c/c83b49383b595be50647f0c764a48c78b5f3c4f8>

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

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