CVE-2024-36934 bna: ensure the copied buf is NUL terminated

High 7.8 Published Updated

A missing null terminator in the bna driver allows out-of-bounds reads via sscanf, potentially causing crashes or leaking kernel memory.

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

What is CVE-2024-36934?

CVE-2024-36934 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 30 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:

bna: ensure the copied buf is NUL terminated

Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Weakness: CWE-787

Which versions are affected by CVE-2024-36934?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-36934?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-36934 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-36934, DEBIAN-CVE-2024-36934, UBUNTU-CVE-2024-36934.

Is CVE-2024-36934 in your software?

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

Check your SBOMs for free