# CVE-2024-35809: PCI/PM: Drain runtime-idle callbacks before driver removal

> 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, CNA) `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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-05-17T13:23:16.168Z
- **Modified:** 2026-10-15T01:17:46.973Z

## Who should check

- Anyone running Linux \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9a87375bb586515c0af63d5dcdcd58ec4acf20a6; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 47d8aafcfe313511a98f165a54d0adceb34e54b1; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< bbe068b24409ef740657215605284fc7cdddd491; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 7cc94dd36e48879e76ae7a8daea4ff322b7d9674; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 900b81caf00c89417172afe0e7e49ac4eb110f4b; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d86ad8c3e152349454b82f37007ff6ba45f26989; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d534198311c345e4b062c4b88bb609efb8bd91d5; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 6347348c6aba52dda0b33296684cbb627bdc6970; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf
- Anyone running Linux 2.6.36

## Description

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

PCI/PM: Drain runtime-idle callbacks before driver removal

A race condition between the .runtime\_idle() callback and the .remove()
callback in the rtsx\_pcr PCI driver leads to a kernel crash due to an
unhandled page fault \[1\].

The problem is that rtsx\_pci\_runtime\_idle() is not expected to be running
after pm\_runtime\_get\_sync() has been called, but the latter doesn't really
guarantee that.  It only guarantees that the suspend and resume callbacks
will not be running when it returns.

However, if a .runtime\_idle() callback is already running when
pm\_runtime\_get\_sync() is called, the latter will notice that the runtime PM
status of the device is RPM\_ACTIVE and it will return right away without
waiting for the former to complete.  In fact, it cannot wait for
.runtime\_idle() to complete because it may be called from that callback (it
arguably does not make much sense to do that, but it is not strictly
prohibited).

Thus in general, whoever is providing a .runtime\_idle() callback needs
to protect it from running in parallel with whatever code runs after
pm\_runtime\_get\_sync().  \[Note that .runtime\_idle() will not start after
pm\_runtime\_get\_sync() has returned, but it may continue running then if it
has started earlier.\]

One way to address that race condition is to call pm\_runtime\_barrier()
after pm\_runtime\_get\_sync() (not before it, because a nonzero value of the
runtime PM usage counter is necessary to prevent runtime PM callbacks from
being invoked) to wait for the .runtime\_idle() callback to complete should
it be running at that point.  A suitable place for doing that is in
pci\_device\_remove() which calls pm\_runtime\_get\_sync() before removing the
driver, so it may as well call pm\_runtime\_barrier() subsequently, which
will prevent the race in question from occurring, not just in the rtsx\_pcr
driver, but in any PCI drivers providing .runtime\_idle() callbacks.

## Affected and fixed versions

- Linux: \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9a87375bb586515c0af63d5dcdcd58ec4acf20a6; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 47d8aafcfe313511a98f165a54d0adceb34e54b1; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< bbe068b24409ef740657215605284fc7cdddd491; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 7cc94dd36e48879e76ae7a8daea4ff322b7d9674; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 900b81caf00c89417172afe0e7e49ac4eb110f4b; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d86ad8c3e152349454b82f37007ff6ba45f26989; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d534198311c345e4b062c4b88bb609efb8bd91d5; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 6347348c6aba52dda0b33296684cbb627bdc6970; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf (cvelist)
- Linux: 2.6.36 (cvelist)

## Mitigation

- Upgrade Linux to 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-35809.md
Affected: Linux >= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, < 9a87375bb586515c0af63d5dcdcd58ec4acf20a6; >= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, < 47d8aafcfe313511a98f165a54d0adceb34e54b1; >= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, < bbe068b24409ef740657215605284fc7cdddd491; >= f3ec4f87d607f40497afdb5…
Fixed in: Linux 9a87375bb586515c0af63d5dcdcd58ec4acf20a6, Linux 47d8aafcfe313511a98f165a54d0adceb34e54b1, Linux 7cc94dd36e48879e76ae7a8daea4ff322b7d9674, Linux 900b81caf00c89417172afe0e7e49ac4eb110f4b, Linux 6347348c6aba52dda0b33296684cbb627bdc6970, Linux 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf

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-2024-35809 being exploited?

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

### How serious is CVE-2024-35809?

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

### Which versions are affected by CVE-2024-35809?

Linux \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9a87375bb586515c0af63d5dcdcd58ec4acf20a6; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 47d8aafcfe313511a98f165a54d0adceb34e54b1; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< bbe068b24409ef740657215605284fc7cdddd491; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 7cc94dd36e48879e76ae7a8daea4ff322b7d9674; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 900b81caf00c89417172afe0e7e49ac4eb110f4b; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d86ad8c3e152349454b82f37007ff6ba45f26989; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< d534198311c345e4b062c4b88bb609efb8bd91d5; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 6347348c6aba52dda0b33296684cbb627bdc6970; \>= f3ec4f87d607f40497afdb5ac03f11e2ea253d52, \< 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf; Linux 2.6.36.

### Is there a fix for CVE-2024-35809?

Yes. Fixed in Linux 9a87375bb586515c0af63d5dcdcd58ec4acf20a6, Linux 47d8aafcfe313511a98f165a54d0adceb34e54b1, Linux 7cc94dd36e48879e76ae7a8daea4ff322b7d9674, Linux 900b81caf00c89417172afe0e7e49ac4eb110f4b, Linux 6347348c6aba52dda0b33296684cbb627bdc6970, Linux 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf. Upgrade Linux to 9d5286d4e7f68beab450deddbb6a32edd5ecf4bf or later.

### How do I check if I'm affected by CVE-2024-35809?

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/9a87375bb586515c0af63d5dcdcd58ec4acf20a6>
- patch: <https://git.kernel.org/stable/c/47d8aafcfe313511a98f165a54d0adceb34e54b1>
- patch: <https://git.kernel.org/stable/c/bbe068b24409ef740657215605284fc7cdddd491>
- patch: <https://git.kernel.org/stable/c/7cc94dd36e48879e76ae7a8daea4ff322b7d9674>
- patch: <https://git.kernel.org/stable/c/900b81caf00c89417172afe0e7e49ac4eb110f4b>
- patch: <https://git.kernel.org/stable/c/d86ad8c3e152349454b82f37007ff6ba45f26989>
- patch: <https://git.kernel.org/stable/c/d534198311c345e4b062c4b88bb609efb8bd91d5>
- patch: <https://git.kernel.org/stable/c/6347348c6aba52dda0b33296684cbb627bdc6970>
- patch: <https://git.kernel.org/stable/c/9d5286d4e7f68beab450deddbb6a32edd5ecf4bf>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.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-2024-35809>

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