Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98271 Overview
CVE-2026-98271 is a Linux kernel vulnerability in the socket buffer (skb) networking subsystem. The flaw affects pskb_carve_inside_header() and pskb_carve_inside_nonlinear() in net/core/skbuff.c. Both functions remove the leading bytes of a packet and reallocate skb->head, but they fail to invalidate stale header offsets. The old skb->mac_header, skb->network_header, skb->transport_header, and skb->csum_start values remain, pointing past skb_tail_pointer() to uninitialized bytes. The condition triggers a kernel BUG() at include/linux/skbuff.h:2847 when drop_monitor pulls back to the bogus MAC header during RDS over TCP socket buffer processing.
Critical Impact
Stale socket buffer header offsets can trigger a kernel BUG(), resulting in denial of service for systems using Reliable Datagram Sockets (RDS) over TCP.
Affected Products
- Linux kernel versions containing pskb_carve_inside_header() and pskb_carve_inside_nonlinear() prior to the fixing commits
- Systems using Reliable Datagram Sockets (RDS) over TCP (rds_tcp_data_recv())
- Deployments with drop_monitor enabled that observe SKB_DROP_REASON_QUEUE_PURGE events
Discovery Timeline
- 2026-10-06 - CVE-2026-98271 published to the National Vulnerability Database
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98271
Vulnerability Analysis
The flaw resides in the Linux kernel's socket buffer management. Functions pskb_carve_inside_header() and pskb_carve_inside_nonlinear() strip leading bytes from a packet and reallocate skb->head. Both helpers call skb_headers_offset_update(skb, 0), which is a no-op. The result is that header offsets describing MAC, network, and transport layers continue pointing to memory regions that no longer contain valid header data.
The reallocated skb->head is sized from the original skb_end_offset(), so stale offsets land inside the new allocation. However, they reference bytes past skb_tail_pointer() that were never initialized. The pskb_carve_inside_nonlinear() path produces the worst case: a zombie skb with an empty linear part where skb->data == skb_tail_pointer(skb) and skb_headlen(skb) == 0, while skb_mac_header_was_set() still returns true.
Root Cause
The root cause is incomplete state reset after reallocating skb->head. The skb_headers_offset_update(skb, 0) call does nothing because the adjustment delta is zero, yet the semantic meaning of the offsets has changed. The MAC, network, transport, inner header offsets, mac_len, inner_protocol, encapsulation flag, and CHECKSUM_PARTIAL state all retain values that no longer describe the carved packet.
Attack Vector
The vulnerable path is reached through RDS over TCP packet reception. The sole caller of pskb_extract() is rds_tcp_data_recv(), which queues carved socket buffers onto tinc->ti_skb_list. When the RDS incoming message is released, rds_tcp_inc_free() calls skb_queue_purge() with reason SKB_DROP_REASON_QUEUE_PURGE. If drop_monitor observes the event, it calls __skb_pull() against the stale MAC header offset, triggering the kernel BUG() and causing a system panic. See the kernel fix commit a5117e1 for the authoritative technical context.
// No verified exploit code available. The vulnerability is triggered
// through standard RDS-over-TCP traffic that exercises pskb_extract()
// and subsequent skb_queue_purge() with drop_monitor active.
Detection Methods for CVE-2026-98271
Indicators of Compromise
- Kernel panic messages referencing kernel BUG at ./include/linux/skbuff.h:2847
- Call traces including __skb_pull, skb_queue_purge, rds_tcp_inc_free, or pskb_carve_inside_nonlinear
- Drop monitor logs showing SKB_DROP_REASON_QUEUE_PURGE immediately preceding a crash
- Unexpected host reboots on systems running RDS over TCP workloads
Detection Strategies
- Audit loaded kernel modules for the rds_tcp module using lsmod | grep rds_tcp
- Compare running kernel version against the fixing commits 12929ed, 75e4a3e, a5117e1, and bff8a8e
- Review crash dumps (kdump, /var/crash) for recurring faults in skb_pull paths
Monitoring Recommendations
- Centralize kernel logs via journald or syslog forwarding to detect BUG() traces across the fleet
- Monitor host availability metrics for unplanned reboots on nodes carrying RDS workloads
- Track drop_monitor configuration state through configuration management to identify systems where the trigger path is active
How to Mitigate CVE-2026-98271
Immediate Actions Required
- Apply the upstream kernel patches referenced in the stable tree commits as soon as vendor builds are available
- Disable the rds_tcp kernel module on hosts that do not require RDS over TCP connectivity
- Blacklist the module through /etc/modprobe.d/ to prevent automatic reloads after reboot
- Schedule maintenance windows for kernel updates on affected production systems
Patch Information
The fix introduces skb_carve_reset_headers() to mark MAC and transport headers as unset, reset the network header, clear skb->mac_len, and drop the now-meaningless CHECKSUM_PARTIAL state. The patch also zeroes inner header fields including inner_mac_header, inner_network_header, inner_transport_header, inner_protocol, and encapsulation. Backport commits are available at 12929ed, 75e4a3e, a5117e1, and bff8a8e.
Workarounds
- Disable drop_monitor where it is not required for operational visibility, which removes the primary trigger path
- Unload the rds_tcp module with modprobe -r rds_tcp on hosts that do not use RDS messaging
- Restrict exposure of RDS over TCP sockets to trusted networks only
# Prevent the rds_tcp module from loading until the kernel is patched
echo "blacklist rds_tcp" | sudo tee /etc/modprobe.d/blacklist-rds-tcp.conf
sudo modprobe -r rds_tcp
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

