CVE-2024-46684 binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined

Medium 5.5 Published Updated

An integer overflow in the Linux kernel's binfmt_elf_fdpic module causes a kernel BUG and denial of service when ELF_HWCAP2 is defined.

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

CVE-2024-46684 is a medium-severity vulnerability in Linux kernel, published on 13 Sep 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:

binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined

create_elf_fdpic_tables() does not correctly account the space for the AUX vector when an architecture has ELF_HWCAP2 defined. Prior to the commit 10e29251be0e ("binfmt_elf_fdpic: fix /proc/<pid>/auxv") it resulted in the last entry of the AUX vector being set to zero, but with that change it results in a kernel BUG.

Fix that by adding one to the number of AUXV entries (nitems) when ELF_HWCAP2 is defined.

Weakness: CWE-131

Which versions are affected by CVE-2024-46684?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46684?

Apply the vendor's patch.

Is CVE-2024-46684 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46684, DEBIAN-CVE-2024-46684, GHSA-p8g8-q26r-2q2r, UBUNTU-CVE-2024-46684.

Is CVE-2024-46684 in your software?

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

Check your SBOMs for free