# CVE-2022-50771: rcu: Fix \_\_this\_cpu\_read() lockdep warning in rcu\_force\_quiescent\_state()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:06:00.412Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 3d92527a919edd1aa381bdd6c299dd75a8167396; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< a74af9b937707b42c3fd041aae1ed4ce2f337307; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 80a3e7ab477b3655615fc1627c88c248d4ad28d9; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< ceb1c8c9b8aa9199da46a0f29d2d5f08d9b44c15
- Anyone running Linux 3.17

## Description

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

rcu: Fix \_\_this\_cpu\_read() lockdep warning in rcu\_force\_quiescent\_state()

Running rcutorture with non-zero fqs\_duration module parameter in a
kernel built with CONFIG\_PREEMPTION=y results in the following splat:

BUG: using \_\_this\_cpu\_read() in preemptible \[00000000\]
code: rcu\_torture\_fqs/398
caller is \_\_this\_cpu\_preempt\_check+0x13/0x20
CPU: 3 PID: 398 Comm: rcu\_torture\_fqs Not tainted 6.0.0-rc1-yoctodev-standard+
Call Trace:
\<TASK\>
dump\_stack\_lvl+0x5b/0x86
dump\_stack+0x10/0x16
check\_preemption\_disabled+0xe5/0xf0
\_\_this\_cpu\_preempt\_check+0x13/0x20
rcu\_force\_quiescent\_state.part.0+0x1c/0x170
rcu\_force\_quiescent\_state+0x1e/0x30
rcu\_torture\_fqs+0xca/0x160
? rcu\_torture\_boost+0x430/0x430
kthread+0x192/0x1d0
? kthread\_complete\_and\_exit+0x30/0x30
ret\_from\_fork+0x22/0x30
\</TASK\>

The problem is that rcu\_force\_quiescent\_state() uses \_\_this\_cpu\_read()
in preemptible code instead of the proper raw\_cpu\_read().  This commit
therefore changes \_\_this\_cpu\_read() to raw\_cpu\_read().

## Affected and fixed versions

- Linux: \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 3d92527a919edd1aa381bdd6c299dd75a8167396; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< a74af9b937707b42c3fd041aae1ed4ce2f337307; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 80a3e7ab477b3655615fc1627c88c248d4ad28d9; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< ceb1c8c9b8aa9199da46a0f29d2d5f08d9b44c15 (cvelist)
- Linux: 3.17 (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-2022-50771. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50771.md
Affected: Linux >= d860d40327dde251d508a234fa00bd0d90fbb656, < 3d92527a919edd1aa381bdd6c299dd75a8167396; >= d860d40327dde251d508a234fa00bd0d90fbb656, < 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc; >= d860d40327dde251d508a234fa00bd0d90fbb656, < 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57; >= d860d40327dde251d508a23…
Fixed in: Linux 3d92527a919edd1aa381bdd6c299dd75a8167396, Linux 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc, Linux 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57, Linux 80a3e7ab477b3655615fc1627c88c248d4ad28d9

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-2022-50771 being exploited?

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

### How serious is CVE-2022-50771?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50771?

Linux \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 3d92527a919edd1aa381bdd6c299dd75a8167396; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< a74af9b937707b42c3fd041aae1ed4ce2f337307; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< 80a3e7ab477b3655615fc1627c88c248d4ad28d9; \>= d860d40327dde251d508a234fa00bd0d90fbb656, \< ceb1c8c9b8aa9199da46a0f29d2d5f08d9b44c15; Linux 3.17.

### Is there a fix for CVE-2022-50771?

Yes. Fixed in Linux 3d92527a919edd1aa381bdd6c299dd75a8167396, Linux 5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc, Linux 98a5b1265a36e9d843a51ddd6c9fa02da50d2c57, Linux 80a3e7ab477b3655615fc1627c88c248d4ad28d9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50771?

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

- other: <https://git.kernel.org/stable/c/3d92527a919edd1aa381bdd6c299dd75a8167396>
- other: <https://git.kernel.org/stable/c/5a52380b8193cf8be6c4a6b94b86ef64ed80c0dc>
- other: <https://git.kernel.org/stable/c/98a5b1265a36e9d843a51ddd6c9fa02da50d2c57>
- other: <https://git.kernel.org/stable/c/a74af9b937707b42c3fd041aae1ed4ce2f337307>
- other: <https://git.kernel.org/stable/c/80a3e7ab477b3655615fc1627c88c248d4ad28d9>
- other: <https://git.kernel.org/stable/c/ceb1c8c9b8aa9199da46a0f29d2d5f08d9b44c15>

## 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-2022-50771>

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