Servers and applications
CVE-2026-0861
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…
- Severity
- High 8.4
- Published
- 14 Jan 2026
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Exploit chance
- 0.4% in the next 30 daysHigher than 33% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Integer overflow (CWE-190)
- Attack
- Needs local access · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Sources
- NVD
Description
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.
Affected software
| Software | Affected versions |
|---|---|
GNU C LibraryServers and applications · cpe:a:gnu:glibc |
|
About GNU C Library
GNU Project's implementation of the C standard library
- Developer
- GNU ProjectWikidata
- License
- GNU Lesser General Public License, version 2.1 or laterWikidata
- Written in
- CWikidata
- First released
- 1987Wikidata
Vulnerabilities in GNU C Library
- In our list
- 167
- Published in the last 12 months
- 19
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 1
- CVE-2026-126765Double free after allocation failure in globLow 3.7 19 Nov 2026
- CVE-2026-124024IBM1390/IBM1399 encoders may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121758ISO-2022-CN-EXT decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121757CP949 decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-100290Double free after allocation failure in regcomp and regexecLow 3.7 11 Nov 2026
- CVE-2026-115819One-byte buffer overflow in wide scanf %s and %[ conversionsMedium 4.8 11 Nov 2026