diff options
author | Eric Biggers <[email protected]> | 2018-03-29 14:31:42 -0400 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2018-03-29 14:31:42 -0400 |
commit | ce3fd194fcc6fbdc00ce095a852f22df97baa401 (patch) | |
tree | 253d8a212f3e27bf2fc56e8176a4b44f8e15c944 /net/unix/sysctl_net_unix.c | |
parent | 7dac4a1726a9c64a517d595c40e95e2d0d135f6f (diff) |
ext4: limit xattr size to INT_MAX
ext4 isn't validating the sizes of xattrs where the value of the xattr
is stored in an external inode. This is problematic because
->e_value_size is a u32, but ext4_xattr_get() returns an int. A very
large size is misinterpreted as an error code, which ext4_get_acl()
translates into a bogus ERR_PTR() for which IS_ERR() returns false,
causing a crash.
Fix this by validating that all xattrs are <= INT_MAX bytes.
This issue has been assigned CVE-2018-1095.
https://bugzilla.kernel.org/show_bug.cgi?id=199185
https://bugzilla.redhat.com/show_bug.cgi?id=1560793
Reported-by: Wen Xu <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Fixes: e50e5129f384 ("ext4: xattr-in-inode support")
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions