CVE-2026-99590: ceph: clamp the inline data length in ceph_fill_inline_data()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ceph: clamp the inline data length in ceph_fill_inline_data()
The MDS decides how much inline data to attach to a reply, and the client parses inline_len without any upper bound: ceph_decode_need() only verifies that the message actually carries that many bytes. ceph_fill_inline_data() then copies the data into a single folio with no length check, so a malicious or buggy MDS returning more inline data than the folio can hold writes past its end.
Clamp the length to folio_size() so both callers, handle_cap_grant() and fill_inode(), are covered.
The Linux kernel CVE team has assigned CVE-2026-99590 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.19 with commit 31c542a199d79f0f402c2f3e04229464510d47ec and fixed in 6.12.118 with commit b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c Issue introduced in 3.19 with commit 31c542a199d79f0f402c2f3e04229464510d47ec and fixed in 6.18.64 with commit f07b16256d7041c60dd2e205783d5d3a7934f884 Issue introduced in 3.19 with commit 31c542a199d79f0f402c2f3e04229464510d47ec and fixed in 7.3.5 with commit 9d06011f8c5b4c9989397a501483fec0f4a149cb Issue introduced in 3.19 with commit 31c542a199d79f0f402c2f3e04229464510d47ec and fixed in 7.4-rc1 with commit 9c1d14d3b66b3e1dd96ee664c0dd2548f2b77a52
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99590
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ceph/addr.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c https://git.kernel.org/stable/c/f07b16256d7041c60dd2e205783d5d3a7934f884 https://git.kernel.org/stable/c/9d06011f8c5b4c9989397a501483fec0f4a149cb https://git.kernel.org/stable/c/9c1d14d3b66b3e1dd96ee664c0dd2548f2b77a52