# CVE-2025-38101: ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set()

- 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 12% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:10.844Z
- Modified: 2026-08-05T11:59:32.011Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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

ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set()

Enlarge the critical section in ring_buffer_subbuf_order_set() to
ensure that error handling takes place with per-buffer mutex held,
thus preventing list corruption and other concurrency-related issues.

(As written by CVE List.)

## Affected

- Linux Linux: from f9b94daa542a8d2532f0930f01cd9aec2d19621b before e09c0600beea469b3ebf974464e526a02d59ad62; from f9b94daa542a8d2532f0930f01cd9aec2d19621b before 0fc9a295cd8e59c3636e97395e7c74a9c89fee42; from f9b94daa542a8d2532f0930f01cd9aec2d19621b before 40ee2afafc1d9fe3aa44a6fbe440d78a5c96a72e; 6.8 (not affected: before 6.8; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.8 before 6.12.34; from 6.13 before 6.15.3

## 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`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/e09c0600beea469b3ebf974464e526a02d59ad62> (patch)
- <https://git.kernel.org/stable/c/0fc9a295cd8e59c3636e97395e7c74a9c89fee42> (patch)
- <https://git.kernel.org/stable/c/40ee2afafc1d9fe3aa44a6fbe440d78a5c96a72e> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-38101 · Whole record: https://cve.day/CVE-2025-38101.json · Rebuilt by cve.day 2026-11-25T22:59:00.508Z
