nfc: nci: free rx_data_reassembly skb on NCI device cleanup (Linux Linux)

CVE-2024-26825
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

  • CWE-459 — Incomplete Cleanup

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 7e9a8498658b398bf11b8e388005fa54e40aed81 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 71349abe3aba7fedcab5b3fcd7aa82371fb5ccbf ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 2f6d16f0520d6505241629ee2f5c131b547d5f9d ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 471c9ede8061357b43a116fa692e70d91941ac23 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 5c0c5ffaed73cbae6c317374dc32ba6cacc60895 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 16d3f507b0fa70453dc54550df093d6e9ac630c1
Linux · Linuxaffected 3.2 ; unaffected 0 < 3.2 ; unaffected 4.19.307 ≤ 4.19.* ; unaffected 5.4.269 ≤ 5.4.* ; unaffected 5.10.210 ≤ 5.10.* ; unaffected 5.15.149 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD