CVE-2026-0861
CVE-2026-0861 · Integer overflow in memalign leads to heap corruption
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Passing too large an alignment to the memalign suite of functions (memalign, posix_memalign, aligned_alloc) in the GNU C Library version 2.30 to 2.42 may result in an integer overflow, which could consequently result in a heap corruption. Note that the attacker must have control over both, the size as well as the alignment arguments of the memalign function to be able to exploit this. The size parameter must be close enough to PTRDIFF_MAX so as to overflow size_t along with the large alignment argument. This limits the malicious inputs for the alignment for memalign to the range [1<<62+ 1, 1<<63] and exactly 1<<63 for posix_memalign and aligned_alloc. Typically the alignment argument passed to such functions is a known constrained quantity (e.g. page size, block size, struct sizes) and is not attacker controlled, because of which this may not be easily exploitable in practice. An application bug could potentially result in the input alignment being too large, e.g. due to a different buffer overflow or integer overflow in the application or its dependent libraries, but that is again an uncommon usage pattern given typical sources of alignments.
CVSS 8.4 · High · EPSS 0.4% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
glibc
- Versions
- ≥ 2.30, ≤ 2.42: Affected (custom)
No fix published
glibc Debian:12
- Versions
- 2.36-9
- 2.36-9+deb12u1
- 2.36-9+deb12u10
- 2.36-9+deb12u11
- 2.36-9+deb12u12
- 2.36-9+deb12u13
- 2.36-9+deb12u2
- 2.36-9+deb12u3
- 2.36-9+deb12u4
- 2.36-9+deb12u5
- 2.36-9+deb12u6
- 2.36-9+deb12u7
- 2.36-9+deb12u8
- 2.36-9+deb12u9
- Affected ranges
- ECOSYSTEM: < 2.36-9+deb12u14
Update to 2.36-9+deb12u14
glibc Debian:13
- Versions
- 2.41-12
- 2.41-12+deb13u1
- Affected ranges
- ECOSYSTEM: < 2.41-12+deb13u2
Update to 2.41-12+deb13u2
glibc Debian:14
- Versions
- 2.41-12
- 2.41-13~hurd.0
- 2.41-13~hurd.1
- 2.42-1
- 2.42-2
- 2.42-3
- 2.42-4
- 2.42-5
- 2.42-6
- 2.42-7
- 2.42-8~hurd.1
- 2.42-8~hurd.2
- Affected ranges
- ECOSYSTEM: < 2.42-8
Update to 2.42-8
glibc Ubuntu:Pro:20.04:LTS
- Versions
- 2.30-0ubuntu2
- 2.30-0ubuntu3
- 2.31-0ubuntu5
- 2.31-0ubuntu6
- 2.31-0ubuntu7
- 2.31-0ubuntu9
- 2.31-0ubuntu9.1
- 2.31-0ubuntu9.2
- 2.31-0ubuntu9.3
- 2.31-0ubuntu9.7
- 2.31-0ubuntu9.9
- 2.31-0ubuntu9.12
- 2.31-0ubuntu9.14
- 2.31-0ubuntu9.15
- 2.31-0ubuntu9.16
- 2.31-0ubuntu9.17
- 2.31-0ubuntu9.18
- Affected ranges
- ECOSYSTEM: < 2.31-0ubuntu9.18+esm1
Update to 2.31-0ubuntu9.18+esm1
glibc Ubuntu:22.04:LTS
- Versions
- 2.34-0ubuntu3
- 2.35-0ubuntu1
- 2.35-0ubuntu3
- 2.35-0ubuntu3.1
- 2.35-0ubuntu3.3
- 2.35-0ubuntu3.4
- 2.35-0ubuntu3.5
- 2.35-0ubuntu3.6
- 2.35-0ubuntu3.7
- 2.35-0ubuntu3.8
- 2.35-0ubuntu3.9
- 2.35-0ubuntu3.10
- 2.35-0ubuntu3.11
- 2.35-0ubuntu3.12
- Affected ranges
- ECOSYSTEM: < 2.35-0ubuntu3.13
Update to 2.35-0ubuntu3.13
glibc Ubuntu:24.04:LTS
- Versions
- 2.38-1ubuntu6
- 2.38-3ubuntu1
- 2.39-0ubuntu1
- 2.39-0ubuntu2
- 2.39-0ubuntu6
- 2.39-0ubuntu8
- 2.39-0ubuntu8.1
- 2.39-0ubuntu8.2
- 2.39-0ubuntu8.3
- 2.39-0ubuntu8.4
- 2.39-0ubuntu8.5
- 2.39-0ubuntu8.6
- Affected ranges
- ECOSYSTEM: < 2.39-0ubuntu8.7
Update to 2.39-0ubuntu8.7
glibc Ubuntu:25.10
- Versions
- 2.41-6ubuntu1
- 2.41-6ubuntu2
- 2.41-9ubuntu1
- 2.42-0ubuntu1
- 2.42-0ubuntu3
- Affected ranges
- ECOSYSTEM: < 2.42-0ubuntu3.1
Update to 2.42-0ubuntu3.1