HomeFreeBSD

acl_copyin: avoid returning uninitialized memory

Description

acl_copyin: avoid returning uninitialized memory

acl_copyin did not validate the return value of acl_copy_oldacl_into_acl
which could lead to uninitialized acl structure memory reads.

Reported by: Synacktiv
Reviewed by: markj, emaste
Sponsored by: The Alpha-Omega Project
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46125

(cherry picked from commit 6ee6c7b146643170602091e8c330314e4ef47b42)
(cherry picked from commit 6bf5c32ad8aa1f1602b3cefb0b5e5918db287335)
(cherry picked from commit 8f16d9f7dc8c119f8ba9ff27d4ce9c48d0b56d11)

Approved by: re (cperciva)

Details

Provenance
khorben_defora.orgAuthored on Jul 25 2024, 12:44 PM
emasteCommitted on Aug 13 2024, 4:43 PM
Reviewer
markj
Differential Revision
Restricted Differential Revision
Parents
rG8807350405ce: pipe: keep uio_iovcnt consistent
Branches
Unknown
Tags
Unknown