CVE-2026-99903: ceph: fix out-of-bounds read in ceph_netfs_issue_op_inline()
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix out-of-bounds read in cephnetfsissueopinline()
The read offset is validated against isize but never against inlinelen, and the two fields come from the MDS independently. When a read starts past the end of the inline data, the subtraction
len = mint(sizet, iinfo->inlinelen - subreq->start, subreq->len);
underflows and mint() ends up with subreq->len, so copytoiter() reads past the end of the inline buffer straight into the user buffer. A malicious or buggy MDS reporting a short inline payload together with an inflated isize can thus leak kernel heap memory to userspace.
Bail out with -ENODATA when the offset is not within the inline data.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In ceph_netfs_issue_op_inline(), bail out with -ENODATA when the read offset is not within the inline data.
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Linux kernel systems using CephFS and reading inline file data from a malicious or buggy Metadata Server (MDS) are exposed. The issue requires an MDS to report an inline payload shorter than the reported file size.
What does an attacker need to exploit it?
An attacker needs control of, or the ability to cause malformed responses from, the Ceph MDS serving the client. The crafted metadata must pair an inflated i_size with a short inline-data length and induce a read starting beyond the inline payload.
What is the impact of successful exploitation?
The vulnerable read can copy data beyond the inline buffer into a userspace buffer, leaking kernel heap memory to userspace. The corrected behavior rejects reads whose offset is outside the inline data with -ENODATA.