aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorYuezhang Mo <[email protected]>2024-10-28 03:23:36 +0000
committerNamjae Jeon <[email protected]>2024-11-25 08:08:20 +0000
commit184fa506e392eb78364d9283c961217ff2c0617b (patch)
treef7395248bfa08c295714d2400c5e3d6e4b8b3533 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff)
downloadkernel-184fa506e392eb78364d9283c961217ff2c0617b.tar.gz
kernel-184fa506e392eb78364d9283c961217ff2c0617b.zip
exfat: fix out-of-bounds access of directory entries
In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption. This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty. Cc: [email protected] Signed-off-by: Yuezhang Mo <[email protected]> Co-developed-by: Namjae Jeon <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions