summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRatnaker Gautam <ratnaker.gautam@kuleuven.be>2026-10-24 12:36:14 +0000
committerPaulo Alcantara <pc@manguebit.org>2026-10-27 11:01:20 -0300
commitddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d (patch)
tree0e205d3f58a42e052f8da87c72dcf3966c7b408c /tools/perf/scripts/python
parent51efca72345acdbedc4af76782d464bd15ba50ff (diff)
downloadlinux-ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d.tar.gz
linux-ddc7a7e1eeb116ccaf010a6f1fb6ab927f3f888d.zip
smb: client: validate SMB1 EA list bounds before parsing
CIFSSMBQAllEAs() checks the server-provided EA list length by adding it to the response pointer. On 32-bit systems, a positive length can wrap the pointer and pass the comparison. The parser then walks outside the received response while reading the next FEA header. A response with a list length of 0x40000000 reproduces this as a native i386 page fault and kernel panic from listxattr() against an SMB1 server. Check that the EA list starts within the SMB byte area before reading its header. Keep its length unsigned and compare it with the bytes left in the response without pointer addition. SMB1 is not negotiated by default and requires an explicit vers=1.0 mount. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Ratnaker Gautam <ratnaker.gautam@kuleuven.be> Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions