UBUNTU-CVE-2026-2597

Source
https://ubuntu.com/security/CVE-2026-2597
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2597.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-2597
Upstream
Published
2026-02-27T00:16:00Z
Modified
2026-05-20T16:24:48.491434206Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Crypt::SysRandom::XS versions before 0.010 for Perl is vulnerable to a heap buffer overflow in the XS function randombytes(). 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 chosen random function (e.g. getrandom) passes the original negative value, which is implicitly converted to a large unsigned value (typically SIZEMAX). 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.

References

Affected packages

Ubuntu:25.10 / libcrypt-sysrandom-xs-perl

Package

Name
libcrypt-sysrandom-xs-perl
Purl
pkg:deb/ubuntu/libcrypt-sysrandom-xs-perl?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.009-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcrypt-sysrandom-xs-perl",
            "binary_version": "0.009-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2597.json"

Ubuntu:26.04:LTS / libcrypt-sysrandom-xs-perl

Package

Name
libcrypt-sysrandom-xs-perl
Purl
pkg:deb/ubuntu/libcrypt-sysrandom-xs-perl?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.009-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcrypt-sysrandom-xs-perl",
            "binary_version": "0.009-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2597.json"