summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-07-20 19:56:24 +0800
committerTyler Hicks <code@tyhicks.com>2026-07-20 22:12:33 -0500
commit95540462e630edbc8504e9537d16453d6942d143 (patch)
treee7100cd3ddb93c22aabdc66d0dffee20f244d9cd /scripts/objdiff
parente97bbe1b2bd82ec2ae37ad2e4965b4d3e78bbf7f (diff)
downloadlinux-95540462e630edbc8504e9537d16453d6942d143.tar.gz
linux-95540462e630edbc8504e9537d16453d6942d143.zip
eCryptfs: bound the packet-length peek to the user buffer
ecryptfs_miscdev_write() accepts the minimum one-byte packet-length encoding, but always copies the maximum two-byte encoding from userspace before parsing it. A six-byte message therefore reads one byte beyond the submitted user buffer. Zero-initialize the peek buffer and copy only the packet-length bytes present. The existing exact packet-size check still rejects truncated two-byte encodings after the parser determines their encoded length. Fixes: 8bf2debd5f7b ("eCryptfs: introduce device handle for userspace daemon communications") Cc: <stable@vger.kernel.org> Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Tyler Hicks <code@tyhicks.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions