diff options
author | Greg Kroah-Hartman <[email protected]> | 2024-05-14 12:06:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-06-04 18:09:03 +0200 |
commit | 7c55b78818cfb732680c4a72ab270cc2d2ee3d0f (patch) | |
tree | 62c34b4f558ab0e97f9aaba704dd17ddb192de9f /net/unix/sysctl_net_unix.c | |
parent | 77427e3d5c353e3dd98c7c0af322f8d9e3131ace (diff) |
jfs: xattr: fix buffer overflow for invalid xattr
When an xattr size is not what is expected, it is printed out to the
kernel log in hex format as a form of debugging. But when that xattr
size is bigger than the expected size, printing it out can cause an
access off the end of the buffer.
Fix this all up by properly restricting the size of the debug hex dump
in the kernel log.
Reported-by: [email protected]
Cc: Dave Kleikamp <[email protected]>
Link: https://lore.kernel.org/r/2024051433-slider-cloning-98f9@gregkh
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions