CVE-2025-40130: scsi: ufs: core: Fix data race in CPU latency PM QoS request handling

Published Nov 12, 2025
·
Updated

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

scsi: ufs: core: Fix data race in CPU latency PM QoS request handling

The cpulatencyqosadd/remove/updaterequest interfaces lack internal synchronization by design, requiring the caller to ensure thread safety. The current implementation relies on the 'pmqosenabled' flag, which is insufficient to prevent concurrent access and cannot serve as a proper synchronization mechanism. This has led to data races and list corruption issues.

A typical race condition call trace is:

[Thread A] ufshcdpmqosexit() --> cpulatencyqosremoverequest() --> cpulatencyqosapply(); --> pmqosupdatetarget() --> plistdel <--(1) delete plist node --> memset(req, 0, sizeof(req)); --> hba->pmqosenabled = false;

[Thread B] ufshcddevfreqtarget --> ufshcddevfreqscale --> ufshcdscaleclks --> ufshcdpmqosupdate <--(2) pmqosenabled is true --> cpulatencyqosupdaterequest --> pmqosupdatetarget --> plistdel <--(3) plist node use-after-free

Introduces a dedicated mutex to serialize PM QoS operations, preventing data races and ensuring safe access to PM QoS resources, including sysfs interface reads.

Affected Software

4 affected componentsFixes available
Linux Linux kernel (scsi: ufs core)
debian/linux<6.12.115-2
6.12.115-2
debian/linux<6.17.6-1
6.17.6-1
debian/linux<=6.12.107-1
6.1.176-16.1.190-16.12.115-27.2.12-17.2.15-1

Event History

Nov 12, 2025
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:15 AM
Description
Data Sourced
via OSV·11:15 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-40130?

CVE-2025-40130 has a medium severity rating due to potential data races in CPU latency PM QoS request handling.

2

How do I fix CVE-2025-40130?

To fix CVE-2025-40130, update to the latest Linux kernel version that includes the patches addressing this vulnerability.

3

What systems are affected by CVE-2025-40130?

CVE-2025-40130 affects the Linux kernel where the cpu_latency_qos_add/remove/update_request interfaces are utilized.

4

What does CVE-2025-40130 entail?

CVE-2025-40130 involves a lack of internal synchronization in CPU latency PM QoS request handling, which can lead to data races.

5

Is there a workaround for CVE-2025-40130?

There is no specific workaround for CVE-2025-40130 besides ensuring proper thread safety in implementations relying on the affected interfaces.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203