[PATCH 1/2] SELinux: Fix lsm_get_self_attr()

Mickaël Salaün mic at digikod.net
Fri Feb 23 19:59:33 UTC 2024


On Fri, Feb 23, 2024 at 08:05:45PM +0100, Mickaël Salaün wrote:
> selinux_lsm_getattr() may not initialize the value's pointer in some
> case.  As for proc_pid_attr_read(), initialize this pointer to NULL in
> selinux_getselfattr() to avoid an UAF in the kfree() call.

Not UAF but NULL pointer dereference (both patches)...



More information about the Linux-security-module-archive mailing list