CVE-2022-49640

sysctl: Fix data races in proc_douintvec_minmax().

State
Published
Severity
4.7 Medium
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 to before e3a2144b3b6bf9ecafd91087c8b8b48171ec19dfAffected
  • 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 to before 40e0477a7371d101c55b69d9c32a7a1ed82ab5eaAffected
  • 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 to before b60eddf98b9716651069dfda296c91311a7a6293Affected
  • 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 to before 2d3b559df3ed39258737789aae2ae7973d205bc1Affected
LinuxLinux
  • 4.13Affected
  • before 4.13Not affected
  • 5.10.132 through 5.10.*Not affected
  • 5.15.56 through 5.15.*Not affected
  • 5.18.13 through 5.18.*Not affected
  • 5.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.