Lucene search

K
cvelistLinuxCVELIST: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
www.cve.org
1
linux kernel
nfc
nci
vulnerability
skb
deallocation
syzkaller

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.2%

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

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

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.2%