CVE-2024-35915 nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet

High 8.8 Published Updated

A local attacker can trigger an uninitialized value read in the Linux kernel NFC driver, potentially leaking sensitive memory contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35915?

CVE-2024-35915 is a high-severity vulnerability in Debian Debian Linux, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet

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

nci_rx_work() 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.

Weakness: CWE-908

Which versions are affected by CVE-2024-35915?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-35915?

Apply the vendor's patch.

Is CVE-2024-35915 being exploited?

There is no known exploitation of CVE-2024-35915 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-35915, DEBIAN-CVE-2024-35915, GHSA-m6cx-h2f4-5jr4, UBUNTU-CVE-2024-35915.

Is CVE-2024-35915 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free