# CVE-2022-49872: net: gso: fix panic on frag\_list with mixed head alloc types

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.76% (percentile 52, 2026-11-26)
- **Published:** 2025-05-01T14:10:22.402Z
- **Modified:** 2026-08-05T08:56:29.682Z

## Who should check

- Anyone running Linux \>= 162a5a8c3aff15c449e6b38355cdf80ab4f77a5a, \< 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a; \>= 55fb612bef7fd237fb70068e2b6ff1cd1543a8ef, \< 0a9f56e525ea871d3950b90076912f5c7494f00f; \>= 821302dd0c51d29269ef73a595bdff294419e2cd, \< bd5362e58721e4d0d1a37796593bd6e51536ce7a; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 65ad047fd83502447269fda8fd26c99077a9af47; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 50868de7dc4e7f0fcadd6029f32bf4387c102ee6; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< ad25a115f50800c6847e0d841c5c7992a9f7c1b3; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 598d9e30927b15731e83797fbd700ecf399f42dd; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 9e4b7a99a03aefd37ba7bb1f022c8efab5019165; 92984818ff8cfd97311a5e0ac27f148a00df2b54; \>= 4.9.194, \< 4.9.334; …
- Anyone running Linux 5.3

## Description

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

net: gso: fix panic on frag\_list with mixed head alloc types

Since commit 3dcbdb134f32 ("net: gso: Fix skb\_segment splat when
splitting gso\_size mangled skb having linear-headed frag\_list"), it is
allowed to change gso\_size of a GRO packet. However, that commit assumes
that "checking the first list\_skb member suffices; i.e if either of the
list\_skb members have non head\_frag head, then the first one has too".

It turns out this assumption does not hold. We've seen BUG\_ON being hit
in skb\_segment when skbs on the frag\_list had differing head\_frag with
the vmxnet3 driver. This happens because \_\_netdev\_alloc\_skb and
\_\_napi\_alloc\_skb can return a skb that is page backed or kmalloced
depending on the requested size. As the result, the last small skb in
the GRO packet can be kmalloced.

There are three different locations where this can be fixed:

(1) We could check head\_frag in GRO and not allow GROing skbs with
    different head\_frag. However, that would lead to performance
    regression on normal forward paths with unmodified gso\_size, where
    !head\_frag in the last packet is not a problem.

(2) Set a flag in bpf\_skb\_net\_grow and bpf\_skb\_net\_shrink indicating
    that NETIF\_F\_SG is undesirable. That would need to eat a bit in
    sk\_buff. Furthermore, that flag can be unset when all skbs on the
    frag\_list are page backed. To retain good performance,
    bpf\_skb\_net\_grow/shrink would have to walk the frag\_list.

(3) Walk the frag\_list in skb\_segment when determining whether
    NETIF\_F\_SG should be cleared. This of course slows things down.

This patch implements (3). To limit the performance impact in
skb\_segment, the list is walked only for skbs with SKB\_GSO\_DODGY set
that have gso\_size changed. Normal paths thus will not hit it.

We could check only the last skb but since we need to walk the whole
list anyway, let's stay on the safe side.

## Affected and fixed versions

- Linux: \>= 162a5a8c3aff15c449e6b38355cdf80ab4f77a5a, \< 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a; \>= 55fb612bef7fd237fb70068e2b6ff1cd1543a8ef, \< 0a9f56e525ea871d3950b90076912f5c7494f00f; \>= 821302dd0c51d29269ef73a595bdff294419e2cd, \< bd5362e58721e4d0d1a37796593bd6e51536ce7a; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 65ad047fd83502447269fda8fd26c99077a9af47; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 50868de7dc4e7f0fcadd6029f32bf4387c102ee6; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< ad25a115f50800c6847e0d841c5c7992a9f7c1b3; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 598d9e30927b15731e83797fbd700ecf399f42dd; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 9e4b7a99a03aefd37ba7bb1f022c8efab5019165; 92984818ff8cfd97311a5e0ac27f148a00df2b54; \>= 4.9.194, \< 4.9.334; … (cvelist)
- Linux: 5.3 (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-2022-49872. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49872.md
Affected: Linux >= 162a5a8c3aff15c449e6b38355cdf80ab4f77a5a, < 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a; >= 55fb612bef7fd237fb70068e2b6ff1cd1543a8ef, < 0a9f56e525ea871d3950b90076912f5c7494f00f; >= 821302dd0c51d29269ef73a595bdff294419e2cd, < bd5362e58721e4d0d1a37796593bd6e51536ce7a; >= 3dcbdb134f329842a38f0e6…
Fixed in: Linux 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a, Linux 0a9f56e525ea871d3950b90076912f5c7494f00f, Linux 65ad047fd83502447269fda8fd26c99077a9af47, Linux 50868de7dc4e7f0fcadd6029f32bf4387c102ee6, Linux 598d9e30927b15731e83797fbd700ecf399f42dd, Linux 9e4b7a99a03aefd37ba7bb1f022c8efab5019165, Linux 4.9.3…

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-2022-49872 being exploited?

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

### How serious is CVE-2022-49872?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-49872?

Linux \>= 162a5a8c3aff15c449e6b38355cdf80ab4f77a5a, \< 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a; \>= 55fb612bef7fd237fb70068e2b6ff1cd1543a8ef, \< 0a9f56e525ea871d3950b90076912f5c7494f00f; \>= 821302dd0c51d29269ef73a595bdff294419e2cd, \< bd5362e58721e4d0d1a37796593bd6e51536ce7a; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 65ad047fd83502447269fda8fd26c99077a9af47; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 50868de7dc4e7f0fcadd6029f32bf4387c102ee6; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< ad25a115f50800c6847e0d841c5c7992a9f7c1b3; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 598d9e30927b15731e83797fbd700ecf399f42dd; \>= 3dcbdb134f329842a38f0e6797191b885ab00a00, \< 9e4b7a99a03aefd37ba7bb1f022c8efab5019165; 92984818ff8cfd97311a5e0ac27f148a00df2b54; \>= 4.9.194, \< 4.9.334; …; Linux 5.3.

### Is there a fix for CVE-2022-49872?

Yes. Fixed in Linux 5876b7f249a1ecbbcc8e35072c3828d6526d1c3a, Linux 0a9f56e525ea871d3950b90076912f5c7494f00f, Linux 65ad047fd83502447269fda8fd26c99077a9af47, Linux 50868de7dc4e7f0fcadd6029f32bf4387c102ee6, Linux 598d9e30927b15731e83797fbd700ecf399f42dd, Linux 9e4b7a99a03aefd37ba7bb1f022c8efab5019165, Linux 4.9.334. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49872?

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/5876b7f249a1ecbbcc8e35072c3828d6526d1c3a>
- patch: <https://git.kernel.org/stable/c/0a9f56e525ea871d3950b90076912f5c7494f00f>
- patch: <https://git.kernel.org/stable/c/bd5362e58721e4d0d1a37796593bd6e51536ce7a>
- patch: <https://git.kernel.org/stable/c/65ad047fd83502447269fda8fd26c99077a9af47>
- patch: <https://git.kernel.org/stable/c/50868de7dc4e7f0fcadd6029f32bf4387c102ee6>
- patch: <https://git.kernel.org/stable/c/ad25a115f50800c6847e0d841c5c7992a9f7c1b3>
- patch: <https://git.kernel.org/stable/c/598d9e30927b15731e83797fbd700ecf399f42dd>
- patch: <https://git.kernel.org/stable/c/9e4b7a99a03aefd37ba7bb1f022c8efab5019165>

## 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-2022-49872>

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