# CVE-2024-38586: r8169: Fix possible ring buffer corruption on fragmented Tx packets.

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-19 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-38586, DEBIAN-CVE-2024-38586
- Record: https://cvemate.com/vulnerability/CVE-2024-38586 · JSON: https://cvemate.com/vulnerability/CVE-2024-38586/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

r8169: Fix possible ring buffer corruption on fragmented Tx packets.

An issue was found on the RTL8125b when transmitting small fragmented
packets, whereby invalid entries were inserted into the transmit ring
buffer, subsequently leading to calls to dma_unmap_single() with a null
address.

This was caused by rtl8169_start_xmit() not noticing changes to nr_frags
which may occur when small packets are padded (to work around hardware
quirks) in rtl8169_tso_csum_v2().

To fix this, postpone inspecting nr_frags until after any padding has been
applied.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.252%, percentile 17.743%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 120)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.12-1
- ubuntu linux (Ubuntu): \< 5.15.0-121.131 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1069.75 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1069.75+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1072.81 \| \< 6.8.0-1012.14
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1072.81~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/61c1c98e2607120ce9c3fa1bf75e6da909712b27>
- <https://git.kernel.org/stable/c/b6d21cf40de103d63ae78551098a7c06af8c98dd>
- <https://git.kernel.org/stable/c/0c48185a95309556725f818b82120bb74e9c627d>
- <https://git.kernel.org/stable/c/68222d7b4b72aa321135cd453dac37f00ec41fd1>
- <https://git.kernel.org/stable/c/078d5b7500d70af2de6b38e226b03f0b932026a6>
- <https://git.kernel.org/stable/c/54e7a0d111240c92c0f02ceba6eb8f26bf6d6479>
- <https://git.kernel.org/stable/c/c71e3a5cffd5309d7f84444df03d5b72600cc417>
- <https://ubuntu.com/security/CVE-2024-38586>
- <https://www.cve.org/CVERecord?id=CVE-2024-38586>
- <https://git.kernel.org/linus/c71e3a5cffd5309d7f84444df03d5b72600cc417>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6949-2>
- <https://ubuntu.com/security/notices/USN-6952-2>
- <https://ubuntu.com/security/notices/USN-7007-1>
- <https://ubuntu.com/security/notices/USN-7009-1>
- <https://ubuntu.com/security/notices/USN-7019-1>
- <https://ubuntu.com/security/notices/USN-7007-2>
- <https://ubuntu.com/security/notices/USN-7007-3>

---

Data as of 2026-12-05T04:12:47.585Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
