Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628710 (CVE-2017-7558) - kernel: sctp: out-of-bounds read (CVE-2017-7558)
Summary: kernel: sctp: out-of-bounds read (CVE-2017-7558)
Status: RESOLVED FIXED
Alias: CVE-2017-7558
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Security
URL: http://seclists.org/oss-sec/2017/q3/338
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-23 12:15 UTC by D'juan McDonald (domhnall)
Modified: 2022-03-26 00:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D'juan McDonald (domhnall) 2017-08-23 12:15:38 UTC
From: Vladis Dronov <vdronov () redhat com>
 Date: Wed, 23 Aug 2017 07:47:02 -0400 (EDT)
   
Heololo,

A kernel data leak due to an out-of-bound read was found in Linux kernel in
inet_diag_msg_sctp{,l}addr_fill() and sctp_get_sctp_info() functions present
since v4.7-rc1 upto v4.13-rc6 including. A data leak happens when these functions
fill in sockaddr data structures used to export socket's diagnostic information.
As a result up to 100 bytes of the slab data could be leaked to a userspace.

Details: it is leaking exactly 100 bytes of a kernel slab whenever we answer to
a netlink request of type INET_DIAG_LOCALS or INET_DIAG_PEERS for a SCTP socket
(e.g. sent by the 'ss' tool included in the 'iproute2' package with 'ss -Si' or
'ss -Sm').

A researcher of this flaw and a patch author is Stefano Brivio of the Red Hat.

References:

https://bugzilla.redhat.com/show_bug.cgi?id=1480266

https://marc.info/?t=150348787500002&r=1&w=2

Suggested patch:

https://marc.info/?l=linux-netdev&m=150348777122761&w=2

Best regards,
Vladis Dronov | Red Hat, Inc. | Product Security Engineer
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 00:15:23 UTC
Fix in 4.9.51, 4.13