HIGH Introduced in 2.6.31
drop_monitor AlertMsg Overflow
CVE-2026-98419
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI9.8CRITICAL
01Description
In the Linux kernel, the following vulnerability has been resolved: drop_monitor: fix out-of-bounds write in reset_per_cpu_data() In reset_per_cpu_data(), al is computed as: al = sizeof(struct net_dm_alert_msg); al += dm_hit_limit * sizeof(struct net_dm_drop_point); al += sizeof(struct nlattr); skb = genlmsg_new(al, GFP_KERNEL); ... nla = nla_reserve(skb, NLA_UNSPEC, sizeof(struct net_dm_alert_msg)); ... msg = nla_data(nla); memset(msg, 0, al); Because al includes sizeof(struct nlattr) (the 4-byte attribute header), genlmsg_new() allocates al bytes of tailroom starting at nla. However, msg points to nla_data(nla), which is located sizeof(struct nlattr) bytes past nla. Calling memset(msg, 0, al) therefore writes al bytes starting from msg, exceeding the allocated buffer by sizeof(struct nlattr) (4 bytes) and corrupting skb_shared_info. Fix this by letting al represent only the payload length, allocating the skb with genlmsg_new(nla_total_size(al), GFP_KERNEL), and zeroing al bytes from msg.
02KernelScan AI Analysis
Risk summary
A remote attacker can trigger a 4-byte out-of-bounds write in the kernel's drop monitor subsystem by causing sufficient packet drops to hit the configured alert threshold. This corrupts the skb_shared_info structure, potentially leading to kernel memory corruption, privilege escalation, or denial of service. The vulnerability is reachable over the network without authentication when drop monitoring is enabled.
Vulnerability analysis
The drop monitor subsystem tracks packet drops and sends netlink alerts when a per-CPU hit limit is exceeded. In reset_per_cpu_data(), the code calculates a buffer size that incorrectly includes the netlink attribute header (4 bytes), allocates an skb with that size, then writes the full calculated length starting from the payload area — which begins after the header. This causes a 4-byte overflow past the allocated buffer into the skb_shared_info metadata. The fix adjusts the length to represent only the payload, uses nla_total_size() to account for the header during allocation, and zeroes only the payload length. An attacker on the network can trigger this by sending traffic that causes packet drops (e.g., to closed ports, malformed packets, or congestion), provided the drop monitor is configured with a hit limit — a common default in monitoring setups.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.31 | 5.10.271 | caf09c09e0f3 |
| 5.15 | 2.6.31 | 5.15.222 | 56b12f0cd476 |
| 6.1 | 2.6.31 | 6.1.189 | 88d640efd655 |
| 6.12 | 2.6.31 | 6.12.112 | 8a04047c6dbf |
| 6.18 | 2.6.31 | 6.18.54 | 530ae0a14580 |
| 6.6 | 2.6.31 | 6.6.158 | d54a044136b1 |
| 7.2 | 2.6.31 | 7.2.8 | 03b672eba493 |
| mainline | 2.6.31 | 7.3 | 439f392084f8 |
| cip/5.10 | 2.6.31 | 5.10.271-cip78 | caf09c09e0f3 |
| cip/5.10-rt | 2.6.31 | 5.10.272-cip79-rt35 | caf09c09e0f3 |
| cip/6.1 | 2.6.31 | 6.1.189-cip61 | 88d640efd655 |
| cip/6.1-rt | 2.6.31 | 6.1.189-cip61-rt32 | 88d640efd655 |
| cip/6.12 | 2.6.31 | 6.12.112-cip33 | 8a04047c6dbf |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |