ceph: clamp the inline data length in ceph_fill_inline_data()
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 31c542a199d79f0f402c2f3e04229464510d47ec, before d9c1bf1967d0e9a499e311d79e648c14dc9e30eb; from 31c542a199d79f0f402c2f3e04229464510d47ec, before 5134f282c7c65a1e44a975bb26fe5c022d9625de; from 31c542a199d79f0f402c2f3e04229464510d47ec, before 7b5eea42b34895df5788789ddd7f748086673a5f; from 31c542a199d79f0f402c2f3e04229464510d47ec, before 595c6d7d3cf3c90ceaab4eb5392dbc1bbb12821a; from 31c542a199d79f0f402c2f3e04229464510d47ec, before b325a1f0d441bb1925ef3c1e09d1db05ecfcc12c; from 31c542a199d79f0f402c2f3e04229464510d47ec, before f07b16256d7041c60dd2e205783d5d3a7934f884; and 2 more | d9c1bf1967d0e9a499e311d79e648c14dc9e30eb; 5134f282c7c65a1e44a975bb26fe5c022d9625de; 7b5eea42b34895df5788789ddd7f748086673a5f; 595c6d7d3cf3c90ceaab4eb5392dbc1bbb12821a |
| Linux Linux | Software | 3.19 | not recorded |
The 9.8 severity score (critical) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.