# CVE-2024-50207: ring-buffer: Fix reader locking when changing the sub buffer order

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2024-11-08T06:07:57.780Z
- Modified: 2026-08-05T11:42:30.399Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ring-buffer: Fix reader locking when changing the sub buffer order

The function ring_buffer_subbuf_order_set() updates each
ring_buffer_per_cpu and installs new sub buffers that match the requested
page order. This operation may be invoked concurrently with readers that
rely on some of the modified data, such as the head bit (RB_PAGE_HEAD), or
the ring_buffer_per_cpu.pages and reader_page pointers. However, no
exclusive access is acquired by ring_buffer_subbuf_order_set(). Modifying
the mentioned data while a reader also operates on them can then result in
incorrect memory access and various crashes.

Fix the problem by taking the reader_lock when updating a specific
ring_buffer_per_cpu in ring_buffer_subbuf_order_set().

(As written by CVE List.)

## Affected

- Linux Linux: from 8e7b58c27b3c567316a51079b375b846f9223bba before a569290525a05162d5dd26d9845591eaf46e5802; from 8e7b58c27b3c567316a51079b375b846f9223bba before 09661f75e75cb6c1d2d8326a70c311d46729235f; 6.8 (not affected: before 6.8; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.8 before 6.11.6; 6.12

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a569290525a05162d5dd26d9845591eaf46e5802> (patch)
- <https://git.kernel.org/stable/c/09661f75e75cb6c1d2d8326a70c311d46729235f> (patch)

## Sources

- CVE List: [CVE-2024-50207](https://www.cve.org/CVERecord?id=CVE-2024-50207), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-50207](https://nvd.nist.gov/vuln/detail/CVE-2024-50207), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-50207 · Whole record: https://cve.day/CVE-2024-50207.json · Rebuilt by cve.day 2026-11-25T22:58:47.916Z
