# CVE-2026-31517: xfrm: iptfs: fix skb\_put() panic on non-linear skb during reassembly

> 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.17% (percentile 3, 2026-11-28)
- **CWE:** CWE-401
- **Published:** 2026-04-22T13:54:33.522Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 33a7b36268933c75bdc355e5531951e0ea9f1951; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 7fdfe8f6efeb0e1200e22a903f2471539f54522b; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 0b352f83cabfefdaafa806d6471f0eca117dc7d5
- Anyone running Linux 6.14

## Description

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

xfrm: iptfs: fix skb\_put() panic on non-linear skb during reassembly

In iptfs\_reassem\_cont(), IP-TFS attempts to append data to the new inner
packet 'newskb' that is being reassembled. First a zero-copy approach is
tried if it succeeds then newskb becomes non-linear.

When a subsequent fragment in the same datagram does not meet the
fast-path conditions, a memory copy is performed. It calls skb\_put() to
append the data and as newskb is non-linear it triggers
SKB\_LINEAR\_ASSERT check.

 Oops: invalid opcode: 0000 \[\#1\] SMP NOPTI
 \[...\]
 RIP: 0010:skb\_put+0x3c/0x40
 \[...\]
 Call Trace:
  \<IRQ\>
  iptfs\_reassem\_cont+0x1ab/0x5e0 \[xfrm\_iptfs\]
  iptfs\_input\_ordered+0x2af/0x380 \[xfrm\_iptfs\]
  iptfs\_input+0x122/0x3e0 \[xfrm\_iptfs\]
  xfrm\_input+0x91e/0x1a50
  xfrm4\_esp\_rcv+0x3a/0x110
  ip\_protocol\_deliver\_rcu+0x1d7/0x1f0
  ip\_local\_deliver\_finish+0xbe/0x1e0
  \_\_netif\_receive\_skb\_core.constprop.0+0xb56/0x1120
  \_\_netif\_receive\_skb\_list\_core+0x133/0x2b0
  netif\_receive\_skb\_list\_internal+0x1ff/0x3f0
  napi\_complete\_done+0x81/0x220
  virtnet\_poll+0x9d6/0x116e \[virtio\_net\]
  \_\_napi\_poll.constprop.0+0x2b/0x270
  net\_rx\_action+0x162/0x360
  handle\_softirqs+0xdc/0x510
  \_\_irq\_exit\_rcu+0xe7/0x110
  irq\_exit\_rcu+0xe/0x20
  common\_interrupt+0x85/0xa0
  \</IRQ\>
  \<TASK\>

Fix this by checking if the skb is non-linear. If it is, linearize it by
calling skb\_linearize(). As the initial allocation of newskb originally
reserved enough tailroom for the entire reassembled packet we do not
need to check if we have enough tailroom or extend it.

## Affected and fixed versions

- Linux: \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 33a7b36268933c75bdc355e5531951e0ea9f1951; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 7fdfe8f6efeb0e1200e22a903f2471539f54522b; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 0b352f83cabfefdaafa806d6471f0eca117dc7d5 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 0b352f83cabfefdaafa806d6471f0eca117dc7d5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31517.md
Affected: Linux >= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, < 33a7b36268933c75bdc355e5531951e0ea9f1951; >= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, < 7fdfe8f6efeb0e1200e22a903f2471539f54522b; >= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, < 0b352f83cabfefdaafa806d6471f0eca117dc7d5; Linux 6.14
Fixed in: Linux 33a7b36268933c75bdc355e5531951e0ea9f1951, Linux 7fdfe8f6efeb0e1200e22a903f2471539f54522b, Linux 0b352f83cabfefdaafa806d6471f0eca117dc7d5

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-2026-31517 being exploited?

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

### How serious is CVE-2026-31517?

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

### Which versions are affected by CVE-2026-31517?

Linux \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 33a7b36268933c75bdc355e5531951e0ea9f1951; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 7fdfe8f6efeb0e1200e22a903f2471539f54522b; \>= 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7, \< 0b352f83cabfefdaafa806d6471f0eca117dc7d5; Linux 6.14.

### Is there a fix for CVE-2026-31517?

Yes. Fixed in Linux 33a7b36268933c75bdc355e5531951e0ea9f1951, Linux 7fdfe8f6efeb0e1200e22a903f2471539f54522b, Linux 0b352f83cabfefdaafa806d6471f0eca117dc7d5. Upgrade Linux to 0b352f83cabfefdaafa806d6471f0eca117dc7d5 or later.

### How do I check if I'm affected by CVE-2026-31517?

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/33a7b36268933c75bdc355e5531951e0ea9f1951>
- patch: <https://git.kernel.org/stable/c/7fdfe8f6efeb0e1200e22a903f2471539f54522b>
- patch: <https://git.kernel.org/stable/c/0b352f83cabfefdaafa806d6471f0eca117dc7d5>

## 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-2026-31517>

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