CVE-2026-0861: Integer overflow in memalign leads to heap corruption

Published Jan 14, 2026
·
Updated

Integer overflow in memalign leads to heap corruption

Other sources

Passing too large an alignment to the memalign suite of functions (memalign, posixmemalign, alignedalloc, valloc, pvalloc) 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.

Red Hat

Passing too large an alignment to the memalign suite of functions (memalign, posixmemalign, alignedalloc) 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 PTRDIFFMAX so as to overflow sizet 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 posixmemalign and alignedalloc.

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.

NVD

Passing too large an alignment to the memalign suite of functions (memalign, posixmemalign, alignedalloc) 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 PTRDIFFMAX so as to overflow sizet along with the large alignment argument. This limits the malicious inputs for the alignment for memalign to the range [162+ 1, 163] and exactly 163 for posixmemalign and alignedalloc.

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.

IBM

Affected Software

5 affected componentsFixes available
GNU C Library>=2.30<=2.42
GNU glibc>=2.30<=2.42
Microsoft azl3 glibc 2.38-18
Microsoft cbl2 glibc 2.35-9
IBM API Connect V12 OnPrem<=All

Event History

Jan 14, 2026
CVE Published
via MITRE·09:01 PM
Data Sourced
via MITRE·09:01 PM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·10:01 PM
DescriptionSeverityAffected Software
Jan 16, 2026
Data Sourced
via Microsoft·09:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:01 AM
Affected Software
Updated
via Microsoft·09:01 AM
DescriptionSeverity
Updated
via Microsoft·09:01 AM
Affected Software
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-0861?

CVE-2026-0861 is considered a high severity vulnerability due to the potential for heap corruption.

2

How do I fix CVE-2026-0861?

To fix CVE-2026-0861, update the GNU C Library to a version beyond 2.42.

3

What causes CVE-2026-0861?

CVE-2026-0861 is caused by an integer overflow from passing overly large alignment values to the memalign functions.

4

What systems are affected by CVE-2026-0861?

CVE-2026-0861 affects the GNU C Library versions 2.30 through 2.42.

5

What are the potential impacts of CVE-2026-0861?

The potential impacts of CVE-2026-0861 include heap corruption, which may lead to application crashes or arbitrary code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203