CVE-2024-30949
newlib: arbitrary code execution via the time unit scaling in the _gettimeofday function
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high).
Description
An issue in newlib v.4.3.0 allows an attacker to execute arbitrary code via the time unit scaling in the _gettimeofday function.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | newlib | no fix listed |
| debian 12 | newlib | no fix listed |
| debian 13 | newlib | 4.4.0.20231231-2 |
| debian 14 | newlib | 4.4.0.20231231-2 |
| echo | newlib | 4.4.0.20231231-2 |
| rapidfort debian 12 | newlib | 0:4.4.0.20231231-2 |
| rapidfort debian 13 | newlib | 0:4.4.0.20231231-2 |
References
- https://access.redhat.com/security/cve/CVE-2024-30949
- https://gist.github.com/visitorckw/6b26e599241ea80210ea136b28441661
- https://inbox.sourceware.org/newlib/20231129035714.469943-1-visitorckw@gmail.com/
- https://nvd.nist.gov/vuln/detail/CVE-2024-30949
- https://sourceware.org/git/?p=newlib-cygwin.git%3Ba=commit%3Bh=5f15d7c5817b07a6b18cbab17342c95cb7b42be4
- https://www.cve.org/CVERecord?id=CVE-2024-30949