Vulnerability · Published Apr 2, 2024 · Assigned by Linux
CVE-2024-26680net: atlantic: Fix DMA mapping for PTP hwts ring
Medium 5.5
In plain English
A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: net: atlantic: Fix DMA mapping for PTP hwts ring Function aq_ring_hwts_rx_alloc() maps extra AQ_CFG_RXDS_DEF bytes for PTP HWTS ring but then generic aq_ring_free() does not take this into account. Create and use a specific function to free HWTS ring to fix this issue. Trace: [ 215.351607] ------------[ cut here ]------------ [ 215.351612] DMA-API: atlantic 0000:4b:00.0: device driver frees DMA memory with different size [device address=0x00000000fbdd0000] [map size=34816 bytes] [unmap size=32768 bytes] [ 215.351635] WARNING: CPU: 33 PID: 10759 at kernel/dma/debug.c:988 check_unmap+0xa6f/0x2360 ... [ 215.581176] Call Trace: [ 215.583632] <TASK> [ 215.585745] ? show_trace_log_lvl+0x1c4/0x2df [ 215.590114] ? show_trace_log_lvl+0x1c4/0x2df [ 215.594497] ? debug_dma_free_coherent+0x196/0x210 [ 215.599305] ? check_unmap+0xa6f/0x2360 [ 215.603147] ? __warn+0xca/0x1d0 [ 215.606391] ? check_unmap+0xa6f/0x2360 [ 215.610237] ? report_bug+0x1ef/0x370 [ 215.613921] ? handle_bug+0x3c/0x70 [ 215.617423] ? exc_invalid_op+0x14/0x50 [ 215.621269] ? asm_exc_invalid_op+0x16/0x20 [ 215.625480] ? check_unmap+0xa6f/0x2360 [ 215.629331] ? mark_lock.part.0+0xca/0xa40 [ 215.633445] debug_dma_free_coherent+0x196/0x210 [ 215.638079] ? __pfx_debug_dma_free_coherent+0x10/0x10 [ 215.643242] ? slab_free_freelist_hook+0x11d/0x1d0 [ 215.648060] dma_free_attrs+0x6d/0x130 [ 215.651834] aq_ring_free+0x193/0x290 [atlantic] [ 215.656487] aq_ptp_ring_free+0x67/0x110 [atlantic] ... [ 216.127540] ---[ end trace 6467e5964dd2640b ]--- [ 216.132160] DMA-API: Mapped at: [ 216.132162] debug_dma_alloc_coherent+0x66/0x2f0 [ 216.132165] dma_alloc_attrs+0xf5/0x1b0 [ 216.132168] aq_ring_hwts_rx_alloc+0x150/0x1f0 [atlantic] [ 216.132193] aq_ptp_ring_alloc+0x1bb/0x540 [atlantic] [ 216.132213] aq_nic_init+0x4a1/0x760 [atlantic]
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.82-1 | DEBIAN-CVE-2024-26680 |
| Debian:13 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26680 |
| Debian:14 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux | 5.15.0-119.129 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-119.129 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1068.74 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1068.74 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1023.23~22.04.1 | USN-6895-3 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1023.23~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1071.80 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1071.80 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1024.25~22.04.1 | USN-6895-2 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1024.25~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1071.80.1 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1071.80.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1067.75 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1067.75 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1024.26~22.04.1 | USN-6895-2 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1024.26~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1065.71 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1065.71 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1051.58 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1051.58 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-44.44~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-44.44~22.04.1 | USN-6900-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1061.64 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1061.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1063.69 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1063.69 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1065.70 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1065.70 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-119.129 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-119.129 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-44.44.1~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-44.44.1~22.04.1 | USN-6895-3 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1063.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1063.64 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1023.24 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1023.24 | USN-6895-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1028.28 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1016.16 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1027.28 | USN-6895-4 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1027.28 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1066.72 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1066.72 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1026.26~22.04.1 | USN-6895-3 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1026.26~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1061.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1061.64 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1017.18~22.04.1 | USN-6895-3 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1017.18~22.04.1 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | UBUNTU-CVE-2024-26680 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | USN-7019-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 94ad94558b0fbf18dd6fb0987540af1693157556 – before 466ceebe48cbba3f4506f165fca7111f9eb8bb1294ad94558b0fbf18dd6fb0987540af1693157556 – before 004fe5b7f59286a926a45e0cafc7870e9cdddd5694ad94558b0fbf18dd6fb0987540af1693157556 – before e42e334c645575be5432adee224975d4f536fdb194ad94558b0fbf18dd6fb0987540af1693157556 – before 2e7d3b67630dfd8f178c41fa2217aa00e79a5887 |
| Linux | Linux | 5.5 |