Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix out-of-bounds read in ceph_netfs_issue_op_inline() The read offset is validated against i_size but never against inline_len, and the two fields come from the MDS independently. When a read starts past the end of the inline data, the subtraction len = min_t(size_t, iinfo->inline_len - subreq->start, subreq->len); underflows and min_t() ends up with subreq->len, so copy_to_iter() 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 i_size can thus leak kernel heap memory to userspace. Bail out with -ENODATA when the offset is not within the inline data.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- None
- Availability
- High impact
References
- git.kernel.org/stable/c/64110c4443d667658fad9ebb567003636e9c27b4
- git.kernel.org/stable/c/dd60dde0feaa58b51a936b80291e84df0a714fbe
- git.kernel.org/stable/c/a7582512fad8b6bfc89c653906067a92169ffcd0
- git.kernel.org/stable/c/acaec29310a634f15007cb25c4ee5c87552c6204
- git.kernel.org/stable/c/0e1bc95bdda8dc382496de11455a627f5a35957c
- git.kernel.org/stable/c/cdbb60f00f87297a9db2652847dfc0eaaf3c45aa
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.