# CVE-2022-49640: sysctl: Fix data races in proc\_douintvec\_minmax().

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-02-26T02:23:48.206Z
- **Modified:** 2026-06-17T05:18:43.150Z

## Who should check

- Anyone running Linux \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< e3a2144b3b6bf9ecafd91087c8b8b48171ec19df; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< b60eddf98b9716651069dfda296c91311a7a6293; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 2d3b559df3ed39258737789aae2ae7973d205bc1
- Anyone running Linux 4.13

## Description

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

sysctl: Fix data races in proc\_douintvec\_minmax().

A sysctl variable is accessed concurrently, and there is always a chance
of data-race.  So, all readers and writers need some basic protection to
avoid load/store-tearing.

This patch changes proc\_douintvec\_minmax() to use READ\_ONCE() and
WRITE\_ONCE() internally to fix data-races on the sysctl side.  For now,
proc\_douintvec\_minmax() itself is tolerant to a data-race, but we still
need to add annotations on the other subsystem's side.

## Affected and fixed versions

- Linux: \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< e3a2144b3b6bf9ecafd91087c8b8b48171ec19df; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< b60eddf98b9716651069dfda296c91311a7a6293; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 2d3b559df3ed39258737789aae2ae7973d205bc1 (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 2d3b559df3ed39258737789aae2ae7973d205bc1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49640.md
Affected: Linux >= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, < e3a2144b3b6bf9ecafd91087c8b8b48171ec19df; >= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, < 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea; >= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, < b60eddf98b9716651069dfda296c91311a7a6293; >= 61d9b56a89208d8cccd0b4c…
Fixed in: Linux 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea, Linux 2d3b559df3ed39258737789aae2ae7973d205bc1

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-49640 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< e3a2144b3b6bf9ecafd91087c8b8b48171ec19df; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< b60eddf98b9716651069dfda296c91311a7a6293; \>= 61d9b56a89208d8cccd0b4cfec7e6959717e16e3, \< 2d3b559df3ed39258737789aae2ae7973d205bc1; Linux 4.13.

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

Yes. Fixed in Linux 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea, Linux 2d3b559df3ed39258737789aae2ae7973d205bc1. Upgrade Linux to 2d3b559df3ed39258737789aae2ae7973d205bc1 or later.

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

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/e3a2144b3b6bf9ecafd91087c8b8b48171ec19df>
- patch: <https://git.kernel.org/stable/c/40e0477a7371d101c55b69d9c32a7a1ed82ab5ea>
- patch: <https://git.kernel.org/stable/c/b60eddf98b9716651069dfda296c91311a7a6293>
- patch: <https://git.kernel.org/stable/c/2d3b559df3ed39258737789aae2ae7973d205bc1>

## 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-49640>

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