]> asedeno.scripts.mit.edu Git - linux.git/commit
cifs: modefromsid: make room for 4 ACE
authorAurelien Aptel <aaptel@suse.com>
Mon, 16 Sep 2019 02:28:36 +0000 (04:28 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:38 +0000 (11:43 -0500)
commit0892ba693f304ce3e9ca1f0a64a5cfc051454996
tree59678f1b7714176901261169a26f5a01ac90e4a2
parent2255397c33425b9c43e36ab01479842258dedccb
cifs: modefromsid: make room for 4 ACE

when mounting with modefromsid, we end up writing 4 ACE in a security
descriptor that only has room for 3, thus triggering an out-of-bounds
write. fix this by changing the min size of a security descriptor.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.h