Bug 1513345 (CVE-2017-15115)

Summary: CVE-2017-15115 kernel: use-after-free in sctp_cmp_addr_exact
Product: [Other] Security Response Reporter: Vladis Dronov <vdronov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: agordeev, airlied, ajax, blc, bskeggs, dhoward, ewk, fhrbata, hdegoede, hkrzesin, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, john.j5live, jonathan, josef, jwboyer, kernel-maint, kernel-mgr, labbott, linville, lwang, mchehab, mguzik, mjg59, mlangsdo, nmurray, plougher, rvrbovsk, steved
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A vulnerability was found in the Linux kernel when peeling off an association to the socket in another network namespace. All transports in this association are not to be rehashed and keep using the old key in hashtable, thus removing transports from hashtable when closing the socket, all transports are being freed. Later on a use-after-free issue could be caused when looking up an association and dereferencing the transports.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-15 11:14:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1499628, 1513346    
Bug Blocks: 1502813    

Description Vladis Dronov 2017-11-15 09:21:35 UTC
It was found that in Linux kernel when peeling off an association to the socket in another network namespace, all transports in this association are not to be rehashed and keep use the old key in hashtable. A kernel would miss removing transports from hashtable when closing the socket and all transports are being freed. Later on a use-after-free issue could be caused when looking up an association and dereferencing the transports.

References:

https://patchwork.ozlabs.org/patch/827077/

http://seclists.org/oss-sec/2017/q4/282

An upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df80cd9b28b9ebaa284a41df611dbf3a2d05ca74

Comment 1 Vladis Dronov 2017-11-15 09:21:57 UTC
Acknowledgments:

Name: ChunYu Wang (Red Hat)

Comment 2 Vladis Dronov 2017-11-15 09:22:58 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1513346]

Comment 3 Vladis Dronov 2017-11-15 09:53:54 UTC
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5 and 6 as a code with the flaw is not present in the products listed.

This issue affects the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 7 and Red Hat Enterprise MRG 2. This has been rated as having Low security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.