aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorGuanglei Zhu <zhugl3@xiaopeng.com>2026-09-10 11:00:36 +0800
committerIlya Dryomov <idryomov@gmail.com>2026-10-26 14:15:47 +0100
commitcdbb60f00f87297a9db2652847dfc0eaaf3c45aa (patch)
tree9aa1be1ba51b00b806eea5e968a71f6b0c1174b1 /scripts/Makefile.thinlto
parentceph: clamp the inline data length in ceph_fill_inline_data() (diff)
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. Cc: stable@vger.kernel.org Fixes: 5b19f1eba459 ("ceph: make ceph_netfs_issue_op() handle inlined data") Signed-off-by: Guanglei Zhu <zhugl3@xiaopeng.com> Reviewed-by: Alex Markuze <amarkuze@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions