systemd: add security fix
authorBaruch Siach <baruch@tkos.co.il>
Wed, 28 Jun 2017 18:44:31 +0000 (21:44 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 28 Jun 2017 21:21:44 +0000 (23:21 +0200)
commit6da327adb21d1cb0f1962b2cadae256ba217972a
tree2302e32816eb838da3d49ecdd3040cc62b3a90b5
parent54778b7d7e84863c4bc3036e69f959ed52b7953b
systemd: add security fix

Add a fix for CVE-2017-9445: In systemd through 233, certain sizes passed to
dns_packet_new in systemd-resolved can cause it to allocate a buffer that's
too small.  A malicious DNS server can exploit this via a response with a
specially crafted TCP payload to trick systemd-resolved into allocating a
buffer that's too small, and subsequently write arbitrary data beyond the
end of it.

The other patch fixes an issue with the security fix.

[Peter: use CVE description from MITRE]
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/systemd/systemd.hash
package/systemd/systemd.mk