# hwrng: ks-sa - fix division by zero in ks_sa_rng_init

CVE record · `CVE-2025-40127`

- **Identifiers:** `CVE-2025-40127`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 12 Nov 2025
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 12 Nov 2025, 10:23 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before 692a04a1e0cde1d80a33df0078c755cf02cd7268` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before d76b099011fa056950f63d05ebb6160991242f6a` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before eec7e0e19c1fa75dc65e25aa6a21ef24a03849af` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before f4238064379a91e71a9c258996acac43c50c2094` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before 2b6bcce32cb5aff84588a844a4d3f6dd5353b8e2` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before 55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2` (git)
  - affected: `6d01d8511dceb9cd40f72eb102b7d24f0b2e997b to before 612b1dfeb414dfa780a6316014ceddf9a74ff5c0` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.5`
  - unaffected: `before 5.5` (semver)
  - unaffected: `5.10.246 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.195 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.156 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.112 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.53 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.3 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 12 Nov 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-40127](https://www.cve.org/CVERecord?id=CVE-2025-40127)
- [NVD: CVE-2025-40127](https://nvd.nist.gov/vuln/detail/CVE-2025-40127)

### References from the CNA

- <https://git.kernel.org/stable/c/692a04a1e0cde1d80a33df0078c755cf02cd7268>
- <https://git.kernel.org/stable/c/d76b099011fa056950f63d05ebb6160991242f6a>
- <https://git.kernel.org/stable/c/eec7e0e19c1fa75dc65e25aa6a21ef24a03849af>
- <https://git.kernel.org/stable/c/f4238064379a91e71a9c258996acac43c50c2094>
- <https://git.kernel.org/stable/c/2b6bcce32cb5aff84588a844a4d3f6dd5353b8e2>
- <https://git.kernel.org/stable/c/55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2>
- <https://git.kernel.org/stable/c/612b1dfeb414dfa780a6316014ceddf9a74ff5c0>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-40127>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-40127/>. Everything for agents: <https://agentprime.io/llms.txt>.
