Re: [PATCH] AppArmor: fix oops in apparmor_setprocattr

From: James Morris
Date: Tue May 31 2011 - 20:25:44 EST


On Tue, 31 May 2011, Kees Cook wrote:

> When invalid parameters are passed to apparmor_setprocattr a NULL deref
> oops occurs when it tries to record an audit message. This is because
> it is passing NULL for the profile parameter for aa_audit. But aa_audit
> now requires that the profile passed is not NULL.
>
> Fix this by passing the current profile on the task that is trying to
> setprocattr.

Is this trigger able by unprivileged users?

>From which upstream commit is this an issue?


- James
--
James Morris
<jmorris@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/