CVE-2023-52699

sysv: don't call sb_bread() with pointers_lock held

5.3 medium EPSS 0.97%

Published 19 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2023-52699

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-52699 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.

Check my servers

Description

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

sysv: don't call sb_bread() with pointers_lock held

syzbot is reporting sleep in atomic context in SysV filesystem [1], for sb_bread() is called with rw_spinlock held.

A "write_lock(&pointers_lock) => read_lock(&pointers_lock) deadlock" bug and a "sb_bread() with write_lock(&pointers_lock)" bug were introduced by "Replace BKL for chain locking with sysvfs-private rwlock" in Linux 2.5.12.

Then, "[PATCH] err1-40: sysvfs locking fix" in Linux 2.6.8 fixed the former bug by moving pointers_lock lock to the callers, but instead introduced a "sb_bread() with read_lock(&pointers_lock)" bug (which made this problem easier to hit).

Al Viro suggested that why not to do like get_branch()/get_block()/ find_shared() in Minix filesystem does. And doing like that is almost a revert of "[PATCH] err1-40: sysvfs locking fix" except that get_branch() from with find_shared() is called without write_lock(&pointers_lock).

Severity (CVSS)

5.3 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.97%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 63.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 May 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.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 13b33feb2ebddc2b1aa607f553566b18a4af1d76
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 1b4fe801b5bedec2b622ddb18e5c9bf26c63d79f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 674c1c4229e743070e09db63a23442950ff000d1
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fd203d2c671bdee9ab77090ff394d3b71b627927
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 53cb1e52c9db618c08335984d1ca80db220ccf09
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 89e8524135a3902e7563a5a59b7b5ec1bf4904ac
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a69224223746ab96d43e5db9d22d136827b7e2d3
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f123dc86388cb669c3d6322702dc441abc35c31e
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 4.19.312 up to and including 4.19.*
unaffected from 5.4.274 up to and including 5.4.*
unaffected from 5.10.215 up to and including 5.10.*
unaffected from 5.15.155 up to and including 5.15.*
unaffected from 6.1.86 up to and including 6.1.*
unaffected from 6.6.27 up to and including 6.6.*
unaffected from 6.8.6 up to and including 6.8.*
unaffected 6.9 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-52699 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52699

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-52699
trivy image --scanners vuln IMAGE | grep CVE-2023-52699

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

Source: the record CVE-2023-52699 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.