HomeFreeBSD

msdosfs: Fix a leak of dirent padding bytes

Description

msdosfs: Fix a leak of dirent padding bytes

This was missed in r340856 / commit
6d2e2df764199f0a15fd743e79599391959cc17d. Three bytes from the kernel
stack may be leaked when reading directory entries.

Reported by: Syed Faraz Abrar <faraz@elttam.com>

(cherry picked from commit 599f90446376370eb365a0fde857ea2b5766873a)
(cherry picked from commit 5ece34669c27a61f78cd0f6e0759c17f7787aebb)

Approved by: so
Security: CVE-2020-25579

Details

Provenance
markjAuthored on Dec 27 2020, 9:52 PM
emasteCommitted on Jan 29 2021, 12:59 AM
Parents
rG66ace87da47b: Ensure that dirent's d_off field is initialized
Branches
Unknown
Tags
Unknown