CVE-2024-38586

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-38586
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38586.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-38586
Downstream
Related
Published
2024-06-19T13:37:41.879Z
Modified
2025-11-28T02:33:49.708369Z
Summary
r8169: Fix possible ring buffer corruption on fragmented Tx packets.
Details

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 dmaunmapsingle() with a null address.

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

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38586.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9020845fb5d6bb4876a38fdf1259600e7d9a63d4
Fixed
61c1c98e2607120ce9c3fa1bf75e6da909712b27
Fixed
b6d21cf40de103d63ae78551098a7c06af8c98dd
Fixed
0c48185a95309556725f818b82120bb74e9c627d
Fixed
68222d7b4b72aa321135cd453dac37f00ec41fd1
Fixed
078d5b7500d70af2de6b38e226b03f0b932026a6
Fixed
54e7a0d111240c92c0f02ceba6eb8f26bf6d6479
Fixed
c71e3a5cffd5309d7f84444df03d5b72600cc417

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.7.0
Fixed
5.10.221
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.161
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.93
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.33
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.12
Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.9.3