# CVE-2023-52636: libceph: just wait for more data to be available on the socket

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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-26)
- **Published:** 2024-04-02T07:01:38.187Z
- **Modified:** 2026-08-05T09:10:48.688Z

## Who should check

- Anyone running Linux \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< da9c33a70f095d5d55c36d0bfeba969e31de08ae; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< bd9442e553ab8bf74b8be3b3c0a43bf4af4dc9b8; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< 8e46a2d068c92a905d01cbb018b00d66991585ab
- Anyone running Linux 6.6

## Description

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

libceph: just wait for more data to be available on the socket

A short read may occur while reading the message footer from the
socket.  Later, when the socket is ready for another read, the
messenger invokes all read\_partial\_\*() handlers, including
read\_partial\_sparse\_msg\_data().  The expectation is that
read\_partial\_sparse\_msg\_data() would bail, allowing the messenger to
invoke read\_partial() for the footer and pick up where it left off.

However read\_partial\_sparse\_msg\_data() violates that and ends up
calling into the state machine in the OSD client.  The sparse-read
state machine assumes that it's a new op and interprets some piece of
the footer as the sparse-read header and returns bogus extents/data
length, etc.

To determine whether read\_partial\_sparse\_msg\_data() should bail, let's
reuse cursor-\>total\_resid.  Because once it reaches to zero that means
all the extents and data have been successfully received in last read,
else it could break out when partially reading any of the extents and
data.  And then osd\_sparse\_read() could continue where it left off.

\[ idryomov: changelog \]

## Affected and fixed versions

- Linux: \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< da9c33a70f095d5d55c36d0bfeba969e31de08ae; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< bd9442e553ab8bf74b8be3b3c0a43bf4af4dc9b8; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< 8e46a2d068c92a905d01cbb018b00d66991585ab (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 8e46a2d068c92a905d01cbb018b00d66991585ab 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-52636. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52636.md
Affected: Linux >= d396f89db39a2f259e2125ca43b4c31bb65afcad, < da9c33a70f095d5d55c36d0bfeba969e31de08ae; >= d396f89db39a2f259e2125ca43b4c31bb65afcad, < bd9442e553ab8bf74b8be3b3c0a43bf4af4dc9b8; >= d396f89db39a2f259e2125ca43b4c31bb65afcad, < 8e46a2d068c92a905d01cbb018b00d66991585ab; Linux 6.6
Fixed in: Linux 8e46a2d068c92a905d01cbb018b00d66991585ab

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-52636 being exploited?

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

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

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< da9c33a70f095d5d55c36d0bfeba969e31de08ae; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< bd9442e553ab8bf74b8be3b3c0a43bf4af4dc9b8; \>= d396f89db39a2f259e2125ca43b4c31bb65afcad, \< 8e46a2d068c92a905d01cbb018b00d66991585ab; Linux 6.6.

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

Yes. Fixed in Linux 8e46a2d068c92a905d01cbb018b00d66991585ab. Upgrade Linux to 8e46a2d068c92a905d01cbb018b00d66991585ab or later.

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

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

- patch: <https://git.kernel.org/stable/c/da9c33a70f095d5d55c36d0bfeba969e31de08ae>
- patch: <https://git.kernel.org/stable/c/bd9442e553ab8bf74b8be3b3c0a43bf4af4dc9b8>
- patch: <https://git.kernel.org/stable/c/8e46a2d068c92a905d01cbb018b00d66991585ab>

## 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-52636>

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