binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel miscalculates auxiliary-vector space for ELF FDPIC binaries on architectures that define ELF_HWCAP2. A local process executing such a binary can trigger a kernel BUG. The input does not specify authentication requirements or user interaction beyond executing the binary.
Operators running Linux kernels on architectures that define ELF_HWCAP2 should check their exposure; affected versions are not specified.