sysctl: Fix data races in proc_douintvec().
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
sysctl: Fix data races in proc_douintvec().
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() to use READ_ONCE() and WRITE_ONCE() internally to fix data-races on the sysctl side. For now, proc_douintvec() itself is tolerant to a data-race, but we still need to add annotations on the other subsystem's side.
From the CVE record · Linux
The Linux kernel's proc_douintvec() can access a sysctl variable concurrently without protection against load/store tearing. The input does not specify an attacker outcome, access requirements, or whether user interaction is needed.
Engineers running Linux kernels should check whether their version is affected; affected versions are not specified.