CVE-2024-47743 KEYS: prevent NULL pointer dereference in find_asymmetric_key()

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's asymmetric key handling allows local attackers to cause a system crash.

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

CVE-2024-47743 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 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:

KEYS: prevent NULL pointer dereference in find_asymmetric_key()

In find_asymmetric_key(), if all NULLs are passed in the id_{0,1,2} arguments, the kernel will first emit WARN but then have an oops because id_2 gets dereferenced anyway.

Add the missing id_2 check and move WARN_ON() to the final else branch to avoid duplicate NULL checks.

Found by Linux Verification Center (linuxtesting.org) with Svace static analysis tool.

Weakness: CWE-476

Which versions are affected by CVE-2024-47743?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-47743?

Apply the vendor's patch.

Is CVE-2024-47743 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-50643, BELL-CVE-2024-47743, DEBIAN-CVE-2024-47743, GHSA-2xch-4r76-8cgw, UBUNTU-CVE-2024-47743.

Is CVE-2024-47743 in your software?

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

Check your SBOMs for free