# CVE-2025-39681: x86/cpu/hygon: Add missing resctrl\_cpu\_detect() in bsp\_init helper

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **Published:** 2025-09-05T17:20:47.564Z
- **Modified:** 2026-11-10T13:17:49.037Z

## Who should check

- Anyone running Linux \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 62f12cde10118253348a7540e85606869bd69432; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 873f32201df8876bdb2563e3187e79149427cab4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< fb81222c1559f89bfe3aa1010f6d112531d55353; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 7207923d8453ebfb35667c1736169f2dd796772e; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< a9e5924daa954c9f585c1ca00358afe71d6781c4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d23264c257a70dbe021b43b3bc2ee16134cd2c69; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d8df126349dad855cdfedd6bbf315bad2e901c2f
- Anyone running Linux 5.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

x86/cpu/hygon: Add missing resctrl\_cpu\_detect() in bsp\_init helper

Since

  923f3a2b48bd ("x86/resctrl: Query LLC monitoring properties once during boot")

resctrl\_cpu\_detect() has been moved from common CPU initialization code to
the vendor-specific BSP init helper, while Hygon didn't put that call in their
code.

This triggers a division by zero fault during early booting stage on our
machines with X86\_FEATURE\_CQM\* supported, where get\_rdt\_mon\_resources() tries
to calculate mon\_l3\_config with uninitialized boot\_cpu\_data.x86\_cache\_occ\_scale.

Add the missing resctrl\_cpu\_detect() in the Hygon BSP init helper.

  \[ bp: Massage commit message. \]

## Affected and fixed versions

- Linux: \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 62f12cde10118253348a7540e85606869bd69432; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 873f32201df8876bdb2563e3187e79149427cab4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< fb81222c1559f89bfe3aa1010f6d112531d55353; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 7207923d8453ebfb35667c1736169f2dd796772e; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< a9e5924daa954c9f585c1ca00358afe71d6781c4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d23264c257a70dbe021b43b3bc2ee16134cd2c69; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d8df126349dad855cdfedd6bbf315bad2e901c2f (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39681. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39681.md
Affected: Linux >= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, < 62f12cde10118253348a7540e85606869bd69432; >= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, < 873f32201df8876bdb2563e3187e79149427cab4; >= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, < fb81222c1559f89bfe3aa1010f6d112531d55353; >= 923f3a2b48bdccb6a1d1f0d…
Fixed in: Linux 62f12cde10118253348a7540e85606869bd69432, Linux 873f32201df8876bdb2563e3187e79149427cab4, Linux 7207923d8453ebfb35667c1736169f2dd796772e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39681 being exploited?

There is no confirmed exploitation: CVE-2025-39681 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39681?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39681?

Linux \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 62f12cde10118253348a7540e85606869bd69432; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 873f32201df8876bdb2563e3187e79149427cab4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< fb81222c1559f89bfe3aa1010f6d112531d55353; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< 7207923d8453ebfb35667c1736169f2dd796772e; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< a9e5924daa954c9f585c1ca00358afe71d6781c4; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d23264c257a70dbe021b43b3bc2ee16134cd2c69; \>= 923f3a2b48bdccb6a1d1f0dd48de03de7ad936d9, \< d8df126349dad855cdfedd6bbf315bad2e901c2f; Linux 5.8.

### Is there a fix for CVE-2025-39681?

Yes. Fixed in Linux 62f12cde10118253348a7540e85606869bd69432, Linux 873f32201df8876bdb2563e3187e79149427cab4, Linux 7207923d8453ebfb35667c1736169f2dd796772e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39681?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/62f12cde10118253348a7540e85606869bd69432>
- patch: <https://git.kernel.org/stable/c/873f32201df8876bdb2563e3187e79149427cab4>
- patch: <https://git.kernel.org/stable/c/fb81222c1559f89bfe3aa1010f6d112531d55353>
- patch: <https://git.kernel.org/stable/c/7207923d8453ebfb35667c1736169f2dd796772e>
- patch: <https://git.kernel.org/stable/c/a9e5924daa954c9f585c1ca00358afe71d6781c4>
- patch: <https://git.kernel.org/stable/c/d23264c257a70dbe021b43b3bc2ee16134cd2c69>
- patch: <https://git.kernel.org/stable/c/d8df126349dad855cdfedd6bbf315bad2e901c2f>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39681>

HTML: <https://flawdb.com/CVE-2025-39681> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39681>
