VDB

CVE-2023-52699

CVE-2023-52699 PUBLISHED CVSS 5.3 MEDIUM

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

Reported by linux · Published May 19, 2024

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.8.6, 6.6.27, 6.1.86, 5.15.155, 5.10.215, 5.4.274, 4.19.312
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
LinuxLinuxfd203d2c671bdee9ab77090ff394d3b71b627927, f123dc86388cb669c3d6322702dc441abc35c31e, a69224223746ab96d43e5db9d22d136827b7e2d3, 89e8524135a3902e7563a5a59b7b5ec1bf4904ac, 674c1c4229e743070e09db63a23442950ff000d1, 2.6.12, 1b4fe801b5bedec2b622ddb18e5c9bf26c63d79f, 13b33feb2ebddc2b1aa607f553566b18a4af1d76

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
LinuxLinux2.6.12, 0, 4.19.312
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 4.19.312, 5.4.274
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
linuxlinux_kernel2.6.12, 2.6.12, 2.6.12
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0

Timeline

  • May 19, 2024 CVE Published
  • May 20, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 25, 2026 Security Advisory (442 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (337 in total, the first dated here)
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-52699
vulnetix vdb fixes CVE-2023-52699

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52699/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›