CVE-2025-39802
published high CVSS 3.1 · 7.5lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contexts
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux773426f4771bdd82ac5c834bf4c1775315c73a46 to < 87bdfba903be7084cb3ee04032b14a81181fe413 · 773426f4771bdd82ac5c834bf4c1775315c73a46 to < 52c3e242f4d0043186b70d65460ba1767f27494a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.16.4 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contexts Restore the SIMD usability check that was removed by commit 773426f4771b ("crypto: arm/poly1305 - Add block-only interface"). This safety check is cheap and is well worth eliminating a footgun. While the Poly1305 functions should not be called when SIMD registers are unusable, if they are anyway, they should just do the right thing instead of corrupting random tasks' registers and/or computing incorrect MACs. Fixing this is also needed for poly1305_kunit to pass. Just use may_use_simd() instead of the original crypto_simd_usable(), since poly1305_kunit won't rely on crypto_simd_disabled_for_test.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - Poly1305 is the MAC half of ChaCha20-Poly1305 and is driven directly by remote peer data through WireGuard, IPsec ESP (rfc7539esp) and kTLS on 32-bit ARM routers, IoT gateways and automotive units, so an off-path attacker's packets are what cause the vulnerable `poly1305_blocks_arch()` invocation. No local access to the target is required. AC:L - There is no race to win and no memory layout to groom; once the MAC computation runs in a context where SIMD is unusable, the `BUG_ON(in_hardirq())`/`BUG_ON(irqs_disabled())` in ARM's `kernel_neon_begin()` fires deterministically, and the attacker only has to keep sending traffic that gets MAC-verified. PR:N - For ChaCha20-Poly1305 AEAD the Poly1305 tag computation *is* the authentication step, so it processes an unauthenticated peer's packet before any credential is validated (e.g. WireGuard handshake-initiation and cookie messages accepted from any source address); no account or key on the target is needed. UI:N - Packet reception and the resulting AEAD tag verification happen automatically inside the kernel with no action by any local user or administrator. S:U - The fault and its consequences are entirely within the kernel's own security authority; no VM, IOMMU or sandbox boundary is crossed. C:N - On ARM the `BUG_ON` pair in `kernel_neon_begin()` traps before any NEON instruction executes, so the VFP/NEON register leak the check guards against is not reached in the `have_neon` configuration and no kernel memory is disclosed. I:N - The trap gives the attacker no write primitive, and a Poly1305 tag computed from a disturbed state fails closed on verification rather than allowing forged data to be accepted. A:H - Hitting `BUG_ON(in_hardirq())`/`BUG_ON(irqs_disabled())` raises a kernel BUG from interrupt or IRQ-disabled context, producing a fatal exception in interrupt / panic that takes down the whole system, and it can be re-triggered simply by resending traffic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 773426f4771bdd82ac5c834bf4c1775315c73a46 to < 87bdfba903be7084cb3ee04032b14a81181fe413 (affected · git)773426f4771bdd82ac5c834bf4c1775315c73a46 to < 52c3e242f4d0043186b70d65460ba1767f27494a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.16.4 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contexts
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cb5aefd1e96baad2510a60cec25366fb4d1fa8aefb0c06463e15bb73f5d235bd
- Ingested
- 23 Sep 2026, 08:47:06 UTC
- Source record
- Official CVE record