# CVE-2023-53709: ring-buffer: Handle race between rb\_move\_tail and rb\_check\_pages

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-10-22T13:23:45.155Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 6e02a43acd0691791df79ce538f2dd497a6c9b76; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< d41db100bc386b9433a3fc87026f5e8b453653e3; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 9674390ac540ed06768e3fbc2dba553929fbd736; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 8843e06f67b14f71c044bf6267b2387784c7e198
- Anyone running Linux 5.7

## Description

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

ring-buffer: Handle race between rb\_move\_tail and rb\_check\_pages

It seems a data race between ring\_buffer writing and integrity check.
That is, RB\_FLAG of head\_page is been updating, while at same time
RB\_FLAG was cleared when doing integrity check rb\_check\_pages():

  rb\_check\_pages()            rb\_handle\_head\_page():
  --------                    --------
  rb\_head\_page\_deactivate()
                              rb\_head\_page\_set\_normal()
  rb\_head\_page\_activate()

We do intergrity test of the list to check if the list is corrupted and
it is still worth doing it. So, let's refactor rb\_check\_pages() such that
we no longer clear and set flag during the list sanity checking.

\[1\] and \[2\] are the test to reproduce and the crash report respectively.

1:
\`\`\` read\_trace.sh
  while true;
  do
    \# the "trace" file is closed after read
    head -1 /sys/kernel/tracing/trace \> /dev/null
  done
\`\`\`
\`\`\` repro.sh
  sysctl -w kernel.panic\_on\_warn=1
  \# function tracer will writing enough data into ring\_buffer
  echo function \> /sys/kernel/tracing/current\_tracer
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
  ./read\_trace.sh &
\`\`\`

2:
------------\[ cut here \]------------
WARNING: CPU: 9 PID: 62 at kernel/trace/ring\_buffer.c:2653
rb\_move\_tail+0x450/0x470
Modules linked in:
CPU: 9 PID: 62 Comm: ksoftirqd/9 Tainted: G        W          6.2.0-rc6+
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014
RIP: 0010:rb\_move\_tail+0x450/0x470
Code: ff ff 4c 89 c8 f0 4d 0f b1 02 48 89 c2 48 83 e2 fc 49 39 d0 75 24
83 e0 03 83 f8 02 0f 84 e1 fb ff ff 48 8b 57 10 f0 ff 42 08 \<0f\> 0b 83
f8 02 0f 84 ce fb ff ff e9 db
RSP: 0018:ffffb5564089bd00 EFLAGS: 00000203
RAX: 0000000000000000 RBX: ffff9db385a2bf81 RCX: ffffb5564089bd18
RDX: ffff9db281110100 RSI: 0000000000000fe4 RDI: ffff9db380145400
RBP: ffff9db385a2bf80 R08: ffff9db385a2bfc0 R09: ffff9db385a2bfc2
R10: ffff9db385a6c000 R11: ffff9db385a2bf80 R12: 0000000000000000
R13: 00000000000003e8 R14: ffff9db281110100 R15: ffffffffbb006108
FS:  0000000000000000(0000) GS:ffff9db3bdcc0000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005602323024c8 CR3: 0000000022e0c000 CR4: 00000000000006e0
Call Trace:
 \<TASK\>
 ring\_buffer\_lock\_reserve+0x136/0x360
 ? \_\_do\_softirq+0x287/0x2df
 ? \_\_pfx\_rcu\_softirq\_qs+0x10/0x10
 trace\_function+0x21/0x110
 ? \_\_pfx\_rcu\_softirq\_qs+0x10/0x10
 ? \_\_do\_softirq+0x287/0x2df
 function\_trace\_call+0xf6/0x120
 0xffffffffc038f097
 ? rcu\_softirq\_qs+0x5/0x140
 rcu\_softirq\_qs+0x5/0x140
 \_\_do\_softirq+0x287/0x2df
 run\_ksoftirqd+0x2a/0x30
 smpboot\_thread\_fn+0x188/0x220
 ? \_\_pfx\_smpboot\_thread\_fn+0x10/0x10
 kthread+0xe7/0x110
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x2c/0x50
 \</TASK\>
---\[ end trace 0000000000000000 \]---

\[ crash report and test reproducer credit goes to Zheng Yejian\]

## Affected and fixed versions

- Linux: \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 6e02a43acd0691791df79ce538f2dd497a6c9b76; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< d41db100bc386b9433a3fc87026f5e8b453653e3; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 9674390ac540ed06768e3fbc2dba553929fbd736; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 8843e06f67b14f71c044bf6267b2387784c7e198 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 8843e06f67b14f71c044bf6267b2387784c7e198 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53709. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53709.md
Affected: Linux >= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, < 6e02a43acd0691791df79ce538f2dd497a6c9b76; >= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, < d41db100bc386b9433a3fc87026f5e8b453653e3; >= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, < 9674390ac540ed06768e3fbc2dba553929fbd736; >= 1039221cc2787dee51a7ffb…
Fixed in: Linux 6e02a43acd0691791df79ce538f2dd497a6c9b76, Linux 9674390ac540ed06768e3fbc2dba553929fbd736, Linux 09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013, Linux 8843e06f67b14f71c044bf6267b2387784c7e198

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53709 being exploited?

There is no confirmed exploitation: CVE-2023-53709 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53709?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53709?

Linux \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 6e02a43acd0691791df79ce538f2dd497a6c9b76; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< d41db100bc386b9433a3fc87026f5e8b453653e3; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 9674390ac540ed06768e3fbc2dba553929fbd736; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013; \>= 1039221cc2787dee51a7ffbf9b0e79d192dadf76, \< 8843e06f67b14f71c044bf6267b2387784c7e198; Linux 5.7.

### Is there a fix for CVE-2023-53709?

Yes. Fixed in Linux 6e02a43acd0691791df79ce538f2dd497a6c9b76, Linux 9674390ac540ed06768e3fbc2dba553929fbd736, Linux 09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013, Linux 8843e06f67b14f71c044bf6267b2387784c7e198. Upgrade Linux to 8843e06f67b14f71c044bf6267b2387784c7e198 or later.

### How do I check if I'm affected by CVE-2023-53709?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/6e02a43acd0691791df79ce538f2dd497a6c9b76>
- other: <https://git.kernel.org/stable/c/d41db100bc386b9433a3fc87026f5e8b453653e3>
- other: <https://git.kernel.org/stable/c/9674390ac540ed06768e3fbc2dba553929fbd736>
- other: <https://git.kernel.org/stable/c/09b1bf25f7f7a8f2bf8cd4278bba9c3172db8013>
- other: <https://git.kernel.org/stable/c/8843e06f67b14f71c044bf6267b2387784c7e198>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53709>

HTML: <https://flawdb.com/CVE-2023-53709> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53709>
