Bug 2348184 (CVE-2022-49640) - CVE-2022-49640 kernel: sysctl: Fix data races in proc_douintvec_minmax().
Summary: CVE-2022-49640 kernel: sysctl: Fix data races in proc_douintvec_minmax().
Keywords:
Status: NEW
Alias: CVE-2022-49640
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:20 UTC by OSIDB Bzimport
Modified: 2025-03-13 15:13 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:20:33 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 21:15:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022618-CVE-2022-49640-96ed@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.