CVE-2024-26946 kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address

Medium 5.5 Published Updated

A local attacker can trigger a kernel panic by specifying an inaccessible data area to kprobes, causing a denial of service.

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

CVE-2024-26946 is a medium-severity denial of service vulnerability in Linux kernel, published on 1 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:

kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address

Read from an unsafe address with copy_from_kernel_nofault() in arch_adjust_kprobe_addr() because this function is used before checking the address is in text or not. Syzcaller bot found a bug and reported the case if user specifies inaccessible data area, arch_adjust_kprobe_addr() will cause a kernel panic.

[ mingo: Clarified the comment. ]

Weakness: CWE-617

Which versions are affected by CVE-2024-26946?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26946?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-26946 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26946, DEBIAN-CVE-2024-26946, GHSA-5g7w-f343-53g9, UBUNTU-CVE-2024-26946.

Is CVE-2024-26946 in your software?

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

Check your SBOMs for free