Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38586
HistoryJun 19, 2024 - 1:37 p.m.

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

2024-06-1913:37:41
Linux
www.cve.org
cve-2024-38586
linux kernel
rtl8125b
ring buffer corruption
fragmented tx packets
rtl8169_start_xmit
dma_unmap_single

0.0004 Low

EPSS

Percentile

10.4%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/realtek/r8169_main.c"
    ],
    "versions": [
      {
        "version": "9020845fb5d6",
        "lessThan": "b6d21cf40de1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9020845fb5d6",
        "lessThan": "0c48185a9530",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9020845fb5d6",
        "lessThan": "68222d7b4b72",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9020845fb5d6",
        "lessThan": "078d5b7500d7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9020845fb5d6",
        "lessThan": "54e7a0d11124",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9020845fb5d6",
        "lessThan": "c71e3a5cffd5",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/realtek/r8169_main.c"
    ],
    "versions": [
      {
        "version": "5.7",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.7",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.161",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.93",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

10.4%

Related for CVELIST:CVE-2024-38586