In the Linux kernel, the following vulnerability has been resolved: ipv6: defrag: orphan skb before queuing IPv4 and nf_conntrack fragment queues or...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12linux |
All versions→ Not listed |
Not listed |
| Debian:13linux |
< 6.12.117-1→ 6.12.117-1 |
6.12.117-1 |
| Debian:14linux |
< 7.3.4-1→ 7.3.4-1 |
7.3.4-1 |
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved: ipv6: defrag: orphan skb before queuing IPv4 and nf_conntrack fragment queues orphan skbs before returning -EINPROGRESS, but ip6_frag_queue() leaves the socket association intact. Commit 18685451fc4e ("inet: inet_defrag: prevent sk release while still in use") moved skb_orphan() into ip_frag_queue() and nf_ct_frag6_queue(), but missed ip6_frag_queue(). Without orphaning, inet_frag_reasm_finish() clears fp->sk on frag_list skbs but leaves fp->destructor set to sock_pfree. Freeing the reassembled skb then calls sock_pfree() with a NULL socket. A socket using SOCK_RCU_FREE may also be released while its fragment is queued, leaving a stale socket pointer; this is a second consequence of the same missing orphan. Orphan the skb before returning -EINPROGRESS so the queued fragment no longer retains the socket association or destructor.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org