Description
The REENT_CHECK macro (see newlib/libc/include/sys/reent.h) as used by REENT_CHECK_TM, REENT_CHECK_MISC, REENT_CHECK_MP and other newlib macros in versions prior to 3.3.0, does not check for memory allocation problems when the DEBUG flag is unset (as is the case in production firmware builds).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | newlib | all newlib versions prior to 3.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | newlib | 3.3.0-1 | — |
| Debian 14 | picolibc | 1.4.3-1 | — |
| Debian 13 | newlib | 3.3.0-1 | — |
| Debian 13 | picolibc | 1.4.3-1 | — |
| Debian 12 | newlib | 3.3.0-1 | — |
| Debian 12 | picolibc | 1.4.3-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | newlib | No fix yet | — |
| Ubuntu 16.04 LTS | newlib | No fix yet | — |