CVE-2024-35915

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35915
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35915.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35915
Downstream
Related
Published
2024-05-19T08:35:08.239Z
Modified
2025-11-28T02:35:08.271304Z
Summary
nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet
Details

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

nfc: nci: Fix uninit-value in ncidevup and ncintfpacket

syzbot reported the following uninit-value access issue [1][2]:

ncirxwork() parses and processes received packet. When the payload length is zero, each message type handler reads uninitialized payload and KMSAN detects this issue. The receipt of a packet with a zero-size payload is considered unexpected, and therefore, such packets should be silently discarded.

This patch resolved this issue by checking payload size before calling each message type handler codes.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35915.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
6a2968aaf50c7a22fced77a5e24aa636281efca8
Fixed
11387b2effbb55f58dc2111ef4b4b896f2756240
Fixed
03fe259649a551d336a7f20919b641ea100e3fff
Fixed
755e53bbc61bc1aff90eafa64c8c2464fd3dfa3c
Fixed
ac68d9fa09e410fa3ed20fb721d56aa558695e16
Fixed
b51ec7fc9f877ef869c01d3ea6f18f6a64e831a7
Fixed
a946ebee45b09294c8b0b0e77410b763c4d2817a
Fixed
8948e30de81faee87eeee01ef42a1f6008f5a83a
Fixed
d24b03535e5eb82e025219c2f632b485409c898f

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.2.0
Fixed
4.19.312
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.274
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.215
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.154
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.85
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.26
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.5