Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-26825
HistoryApr 17, 2024 - 9:43 a.m.

CVE-2024-26825 nfc: nci: free rx_data_reassembly skb on NCI device cleanup

2024-04-1709:43:51
Linux
github.com
3
linux kernel
skb leak
nci device

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.1%

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

nfc: nci: free rx_data_reassembly skb on NCI device cleanup

rx_data_reassembly skb is stored during NCI data exchange for processing
fragmented packets. It is dropped only when the last fragment is processed
or when an NTF packet with NCI_OP_RF_DEACTIVATE_NTF opcode is received.
However, the NCI device may be deallocated before that which leads to skb
leak.

As by design the rx_data_reassembly skb is bound to the NCI device and
nothing prevents the device to be freed before the skb is processed in
some way and cleaned, free it on the NCI device cleanup.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "7e9a8498658b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "71349abe3aba",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "2f6d16f0520d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "471c9ede8061",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "5c0c5ffaed73",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "16d3f507b0fa",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "a3d90fb5c23f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6a2968aaf50c",
        "lessThan": "bfb007aebe6b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/nfc/nci/core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.2"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.2",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "4.19.307",
        "versionType": "custom",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.269",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.210",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.149",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.79",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.18",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.6",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/nfc/nci/core.c"
    ],
    "defaultStatus": "affected"
  }
]

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.1%