Summary
A flaw in the Linux kernel Ceph client has been fixed: it did not bound the inline data length sent by the MDS, allowing a write past the end of a folio. The source rates it critical with a CVSS score of 9.8.
What happened
In the Linux kernel Ceph client, the MDS decides how much inline data to attach to a reply, and the client parses the stated length without any upper bound: it only checks that the message actually carries that many bytes. ceph_fill_inline_data() then copies that data into a single folio without checking the length. If a malicious or buggy MDS returns more inline data than the folio can hold, the write goes past its end. The fix clamps the length to folio_size(), covering both callers, handle_cap_grant() and fill_inode().
Why it matters
The source assigns critical severity and a CVSS 3.1 score of 9.8 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, source: CNA Linux). The out-of-bounds write occurs when the client processes a reply from a malicious or faulty MDS. The source does not indicate known active exploitation: CISA's KEV catalog does not list this vulnerability as exploited.
Affected products and versions
Linux (kernel). According to the source, the affected ranges run from commit 31c542a199d79f0f402c2f3e04229464510d47ec up to (excluding) commits b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c, f07b16256d7041c60dd2e205783d5d3a7934f884, 9d06011f8c5b4c9989397a501483fec0f4a149cb and 9c1d14d3b66b3e1dd96ee664c0dd2548f2b77a52, plus version 3.19. Versions earlier than 3.19 and versions 6.12.118 (6.12.* series), 6.18.64 (6.18.* series), 7.3.5 (7.3.* series) and 7.4-rc1 are listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| Linux Linux | >= 31c542a199d79f0f402c2f3e04229464510d47ec, < b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c | — |
| Linux Linux | >= 31c542a199d79f0f402c2f3e04229464510d47ec, < f07b16256d7041c60dd2e205783d5d3a7934f884 | — |
| Linux Linux | >= 31c542a199d79f0f402c2f3e04229464510d47ec, < 9d06011f8c5b4c9989397a501483fec0f4a149cb | — |
| Linux Linux | >= 31c542a199d79f0f402c2f3e04229464510d47ec, < 9c1d14d3b66b3e1dd96ee664c0dd2548f2b77a52 | — |
| Linux Linux | 3.19 | — |
| Linux Linux | < 3.19 | — |
| Linux Linux | 6.12.118 | 6.12.118 |
| Linux Linux | 6.18.64 | 6.18.64 |
| Linux Linux | 7.3.5 | 7.3.5 |
| Linux Linux | 7.4-rc1 | 7.4-rc1 |
Action recommended by the source
The source publishes the fixes as commits in the stable kernel tree (git.kernel.org) and lists versions 6.12.118, 6.18.64, 7.3.5 and 7.4-rc1 as unaffected. The source does not state any other mitigation measures.
Fixed in: 6.12.118, 6.18.64, 7.3.5, 7.4-rc1
Sources and references
- https://git.kernel.org/stable/c/b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c — CVE Program
- https://git.kernel.org/stable/c/f07b16256d7041c60dd2e205783d5d3a7934f884 — CVE Program
- https://git.kernel.org/stable/c/9d06011f8c5b4c9989397a501483fec0f4a149cb — CVE Program
- https://git.kernel.org/stable/c/9c1d14d3b66b3e1dd96ee664c0dd2548f2b77a52 — CVE Program
Relevant change history
Published
Advisory published.