lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140909.173607.2092550389439938050.davem@davemloft.net>
Date:	Tue, 09 Sep 2014 17:36:07 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	ani@...sta.com
Cc:	fruggeri@...sta.com, netdev@...r.kernel.org, fenner@...sta.com,
	travisb@...sta.com, hannes@...essinduktion.org,
	matthew.leach@....com, eric.dumazet@...il.com
Subject: Re: [PATCH 1/1] net:socket: set msg_namelen to 0 if msg_name is
 passed as NULL in msghdr struct from userland.

From: Ani Sinha <ani@...sta.com>
Date: Mon,  8 Sep 2014 14:49:59 -0700

> Linux manpage for recvmsg and sendmsg calls does not explicitly mention setting msg_namelen to 0 when
> msg_name passed set as NULL. When developers don't set msg_namelen member in msghdr, it might contain garbage
> value which will fail the validation check and sendmsg and recvmsg calls from kernel will return EINVAL. This will
> break old binaries and any code for which there is no access to source code.
> To fix this, we set msg_namelen to 0 when msg_name is passed as NULL from userland.
> 
> Signed-off-by: Ani Sinha <ani@...sta.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ