[PATCH 1/2] audit: fix info leak in AUDIT_GET requests
Richard Guy Briggs
rgb at redhat.com
Tue Oct 1 02:20:13 UTC 2013
On Mon, Sep 30, 2013 at 10:04:24PM +0200, Mathias Krause wrote:
> We leak 4 bytes of kernel stack in response to an AUDIT_GET request as
> we miss to initialize the mask member of status_set. Fix that.
Thank you.
> Cc: Al Viro <viro at zeniv.linux.org.uk>
> Cc: Eric Paris <eparis at redhat.com>
> Cc: stable at vger.kernel.org # v2.6.6+
> Signed-off-by: Mathias Krause <minipli at googlemail.com>
> ---
> kernel/audit.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/audit.c b/kernel/audit.c
> index 7b0e23a..e237712 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -659,6 +659,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
>
> switch (msg_type) {
> case AUDIT_GET:
> + status_set.mask = 0;
> status_set.enabled = audit_enabled;
> status_set.failure = audit_failure;
> status_set.pid = audit_pid;
> --
> 1.7.10.4
>
> --
> Linux-audit mailing list
> Linux-audit at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit
- RGB
--
Richard Guy Briggs <rbriggs at redhat.com>
Senior Software Engineer
Kernel Security
AMER ENG Base Operating Systems
Remote, Ottawa, Canada
Voice: +1.647.777.2635
Internal: (81) 32635
Alt: +1.613.693.0684x3545
More information about the Linux-audit
mailing list