netfilter: x_tables: avoid leaking percpu counter pointers
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.259, Kernel 5.15.210, Kernel 6.1.176 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: x_tables: avoid leaking percpu counter pointers The native and compat get-entries paths copy the fixed rule entry header from the kernelized rule blob to userspace before overwriting the entry's counter fields with a sanitized counter snapshot. On SMP kernels, entry->counters.pcnt contains the percpu allocation address used by x_tables rule counters. A caller can provide a userspace buffer that faults during the initial fixed-header copy after pcnt has been copied but before the later sanitized counter copy runs. The syscall then returns -EFAULT while leaving the raw percpu pointer in userspace. Copy only the fixed entry prefix before counters from the kernelized rule blob, then copy the sanitized counter snapshot into the counter field. Apply this ordering to the IPv4, IPv6, and ARP native and compat get-entries implementations so a fault cannot expose the internal percpu counter pointer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.2 <5.10.259, >=5.11 <5.15.210, >=5.16 <6.1.176, >=6.13 <6.18.36, >=6.19 <7.0.13, >=6.2 <6.6.143, >=6.7 <6.12.94, =7.1, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <0b35dc8527ccc16b7dc34e8a3164313e68cd4e45, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <8d67e42ad3b1a95a152541015a07110e06992d6c, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <a0d16941adf3a501956d74aefd8d6e217906e79c, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <b28e2fcad3db7e8687b15bc20bced26b5b7c920e, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <b74ba3343eb44b2cbf7e9665918c287df1d52ebb, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <f7f2fbb0e893a0238dc464f8d8c0f5609bec584f, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <fb0521aff1e10e300d89725cc439d3ea74c828c5, =4.2, >=71ae0dff02d756e4d2ca710b79f2ff5390029a5f <08a3e218064db11f154ad9ad5541751ea7f34ebe | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 0b35dc8527ccc16b7dc34e8a3164313e68cd4e45, 8d67e42ad3b1a95a152541015a07110e06992d6c, a0d16941adf3a501956d74aefd8d6e217906e79c, b28e2fcad3db7e8687b15bc20bced26b5b7c920e, b74ba3343eb44b2cbf7e9665918c287df1d52ebb, f7f2fbb0e893a0238dc464f8d8c0f5609bec584f, fb0521aff1e10e300d89725cc439d3ea74c828c5, 08a3e218064db11f154ad9ad5541751ea7f34ebe |
| linux-kernel: Kernel | >=4.2.0 <5.10.259, >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket