CVE-2024-36957 octeontx2-af: avoid off-by-one read from userspace

Medium 5.5 Published Updated

An off-by-one error in the octeontx2-af driver allows reading one byte beyond the user-provided buffer, potentially causing information disclosure or crashes.

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-36957?

CVE-2024-36957 is a medium-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:

octeontx2-af: avoid off-by-one read from userspace

We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead.

Weakness: CWE-193

Which versions are affected by CVE-2024-36957?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-36957?

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-36957 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

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

Is CVE-2024-36957 in your software?

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

Check your SBOMs for free