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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-09-13T05:29:16.556Z
- Modified: 2026-06-17T07:55:43.610Z
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 10e29251be0e9f774910c1baaa89355859491769 before c507da85e4f80c630deb9e98222ccf4118cbe6f8; from 10e29251be0e9f774910c1baaa89355859491769 before c6a09e342f8e6d3cac7f7c5c14085236aca284b9; 6.10 (not affected: before 6.10; from 6.10.8 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.10 before 6.10.8; 6.11

## References

- <https://git.kernel.org/stable/c/c507da85e4f80c630deb9e98222ccf4118cbe6f8> (patch)
- <https://git.kernel.org/stable/c/c6a09e342f8e6d3cac7f7c5c14085236aca284b9> (patch)

## Sources

- CVE List: [CVE-2024-46684](https://www.cve.org/CVERecord?id=CVE-2024-46684), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46684](https://nvd.nist.gov/vuln/detail/CVE-2024-46684), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46684 · Whole record: https://cve.day/CVE-2024-46684.json · Rebuilt by cve.day 2026-11-25T22:58:45.376Z
