diff options
| author | Norbert Szetei <[email protected]> | 2025-03-29 06:58:15 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-04-01 05:04:21 +0000 |
| commit | beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42 (patch) | |
| tree | dec042705da83968d26b38cb0bf5c4dc0386eac1 /tools/lib/bpf/linker.c | |
| parent | ksmbd: fix session use-after-free in multichannel connection (diff) | |
| download | kernel-beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42.tar.gz kernel-beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42.zip | |
ksmbd: fix overflow in dacloffset bounds check
The dacloffset field was originally typed as int and used in an
unchecked addition, which could overflow and bypass the existing
bounds check in both smb_check_perm_dacl() and smb_inherit_dacl().
This could result in out-of-bounds memory access and a kernel crash
when dereferencing the DACL pointer.
This patch converts dacloffset to unsigned int and uses
check_add_overflow() to validate access to the DACL.
Cc: [email protected]
Signed-off-by: Norbert Szetei <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions
