CVE-2023-52501
ring-buffer: Do not attempt to read past "commit"
Check your servers for CVE-2023-52501
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52501 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ring-buffer: Do not attempt to read past "commit"
When iterating over the ring buffer while the ring buffer is active, the writer can corrupt the reader. There's barriers to help detect this and handle it, but that code missed the case where the last event was at the very end of the page and has only 4 bytes left.
The checks to detect the corruption by the writer to reads needs to see the length of the event. If the length in the first 4 bytes is zero then the length is stored in the second 4 bytes. But if the writer is in the process of updating that code, there's a small window where the length in the first 4 bytes could be zero even though the length is only 4 bytes. That will cause rb_event_length() to read the next 4 bytes which could happen to be off the allocated page.
To protect against this, fail immediately if the next event pointer is less than 8 bytes from the end of the commit (last byte of data), as all events must be a minimum of 8 bytes anyway.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 785888c544e0433f601df18ff98a3215b380b9c3, before cee5151c5410e868826b8afecfb356f3799ebea3 affected from 785888c544e0433f601df18ff98a3215b380b9c3, before 344f2f3e61a90f0150c754796ec9a17fcaeec03d affected from 785888c544e0433f601df18ff98a3215b380b9c3, before b08a4938229dbb530a35c41b83002a1457c6ff49 affected from 785888c544e0433f601df18ff98a3215b380b9c3, before 75fc9e99b3a71006720ad1e029db11a4b5c32d4a affected from 785888c544e0433f601df18ff98a3215b380b9c3, before 95a404bd60af6c4d9d8db01ad14fe8957ece31ca
Other versions: unaffected
|
| Linux |
affected 5.7 unaffected before 5.7 unaffected from 5.10.198 up to and including 5.10.* unaffected from 5.15.134 up to and including 5.15.* unaffected from 6.1.56 up to and including 6.1.* unaffected from 6.5.6 up to and including 6.5.* unaffected 6.6 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52501 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52501
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52501
trivy image --scanners vuln IMAGE | grep CVE-2023-52501
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/cee5151c5410e868826b8afecfb356f3799ebea3 git.kernel.org
- https://git.kernel.org/stable/c/344f2f3e61a90f0150c754796ec9a17fcaeec03d git.kernel.org
- https://git.kernel.org/stable/c/b08a4938229dbb530a35c41b83002a1457c6ff49 git.kernel.org
- https://git.kernel.org/stable/c/75fc9e99b3a71006720ad1e029db11a4b5c32d4a git.kernel.org
- https://git.kernel.org/stable/c/95a404bd60af6c4d9d8db01ad14fe8957ece31ca git.kernel.org
Source: the record CVE-2023-52501 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse