android_kernel_sony_sdm845/security
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sachin Grover 6c7b114558 selinux: KASAN: slab-out-of-bounds in xattr_getsecurity
Call trace:
 [<ffffff9203a8d7a8>] dump_backtrace+0x0/0x428
 [<ffffff9203a8dbf8>] show_stack+0x28/0x38
 [<ffffff920409bfb8>] dump_stack+0xd4/0x124
 [<ffffff9203d187e8>] print_address_description+0x68/0x258
 [<ffffff9203d18c00>] kasan_report.part.2+0x228/0x2f0
 [<ffffff9203d1927c>] kasan_report+0x5c/0x70
 [<ffffff9203d1776c>] check_memory_region+0x12c/0x1c0
 [<ffffff9203d17cdc>] memcpy+0x34/0x68
 [<ffffff9203d75348>] xattr_getsecurity+0xe0/0x160
 [<ffffff9203d75490>] vfs_getxattr+0xc8/0x120
 [<ffffff9203d75d68>] getxattr+0x100/0x2c8
 [<ffffff9203d76fb4>] SyS_fgetxattr+0x64/0xa0
 [<ffffff9203a83f70>] el0_svc_naked+0x24/0x28

If user get root access and calls security.selinux setxattr() with an
embedded NUL on a file and then if some process performs a getxattr()
on that file with a length greater than the actual length of the string,
it would result in a panic.

To fix this, add the actual length of the string to the security context
instead of the length passed by the userspace process.

Change-Id: Ie0b8bfc7c96bc12282b955fb3adf41b3c2d011cd
Signed-off-by: Sachin Grover <sgrover@codeaurora.org>
2018-05-30 21:24:29 -07:00
..
apparmor Merge android-4.9.89 (960923f) into msm-4.9 2018-04-17 10:45:20 -07:00
integrity ima: relax requiring a file signature for new files with zero length 2018-03-22 09:17:58 +01:00
keys This is the 4.9.84 stable release 2018-02-26 09:18:03 +01:00
loadpin security: mark LSM hooks as __ro_after_init 2017-07-25 15:01:41 -07:00
pfe Enable hardware based FBE on f2fs and adapt ext4 fs 2018-05-28 10:56:49 +05:30
selinux selinux: KASAN: slab-out-of-bounds in xattr_getsecurity 2018-05-30 21:24:29 -07:00
smack Merge remote-tracking branch '4.9/tmp-05a906d' into msm-4.9 2017-10-19 12:05:22 -07:00
tomoyo security: mark LSM hooks as __ro_after_init 2017-07-25 15:01:41 -07:00
yama security: mark LSM hooks as __ro_after_init 2017-07-25 15:01:41 -07:00
commoncap.c Merge remote-tracking branch '4.9/tmp-f7d2974' into msm-4.9 2017-09-19 12:07:46 -07:00
device_cgroup.c security/device_cgroup: Fix RCU_LOCKDEP_WARN() condition 2015-09-03 18:13:10 -07:00
inode.c ANDROID: vfs: Add permission2 for filesystems with per mount permissions 2017-01-31 10:47:22 -08:00
Kconfig Resolve merge conflict and enable HW FBE for ext4 fs 2018-05-22 12:58:05 +05:30
lsm_audit.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2016-10-04 14:48:27 -07:00
Makefile Resolve merge conflict and enable HW FBE for ext4 fs 2018-05-22 12:58:05 +05:30
min_addr.c
security.c Resolve merge conflict and enable HW FBE for ext4 fs 2018-05-22 12:58:05 +05:30