# CVE-2026-2474: libcrypt-urandom-perl: Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function cry...

CVE-2026-2474 is fixed in 5 products on 1 platform, first by DEBIAN-CVE-2026-2474, released February 16, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-2474
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0035
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 16, 2026

## Description

Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function crypt_urandom_getrandom().  The function does not validate that the length parameter is non-negative. If a negative value (e.g. -1) is supplied, the expression length + 1u causes an integer wraparound, resulting in a zero-byte allocation. The subsequent call to getrandom(data, length, GRND_NONBLOCK) passes the original negative value, which is implicitly converted to a large unsigned value (typically SIZE_MAX). This can result in writes beyond the allocated buffer, leading to heap memory corruption and application crash (denial of service).  In common usage, the length argument is typically hardcoded by the caller, which reduces the likelihood of attacker-controlled exploitation. Applications that pass untrusted input to this parameter may be affected.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libcrypt-urandom-perl Debian 13.5 (trixie) | 0.54-1+deb13u1 | [DEBIAN-CVE-2026-2474](https://patchblox.com/security/data/fix/linux/debian-cve-2026-2474.md) | Feb 16, 2026 |
| Linux | libcrypt-urandom-perl Debian 14 | 0.55-1 | [DEBIAN-CVE-2026-2474](https://patchblox.com/security/data/fix/linux/debian-cve-2026-2474.md) | Feb 16, 2026 |
| Linux | perl-Crypt-URandom Fedora 43 | 0.55-1.fc43 | [FEDORA-2026-88F1155B8B](https://patchblox.com/security/data/fix/linux/fedora-2026-88f1155b8b.md) | Feb 23, 2026 |
| Linux | perl-Crypt-URandom-debuginfo Fedora 43 | 0.55-1.fc43 | [FEDORA-2026-88F1155B8B](https://patchblox.com/security/data/fix/linux/fedora-2026-88f1155b8b.md) | Feb 23, 2026 |
| Linux | perl-Crypt-URandom-debugsource Fedora 43 | 0.55-1.fc43 | [FEDORA-2026-88F1155B8B](https://patchblox.com/security/data/fix/linux/fedora-2026-88f1155b8b.md) | Feb 23, 2026 |
| Linux | perl-Crypt-URandom-tests Fedora 43 | 0.55-1.fc43 | [FEDORA-2026-88F1155B8B](https://patchblox.com/security/data/fix/linux/fedora-2026-88f1155b8b.md) | Feb 23, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
