Bug 1514609 (CVE-2017-15116)

Summary: CVE-2017-15116 kernel: Null pointer dereference in rngapi_reset function
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: airlied, ajax, aquini, bhu, blc, brdeoliv, bskeggs, dhoward, ewk, fhrbata, hdegoede, hkrzesin, hwkernel-mgr, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jkacur, john.j5live, jonathan, josef, jross, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, matt, mchehab, mcressma, meissner, mjg59, mlangsdo, nmurray, plougher, rt-maint, rvrbovsk, security-response-team, slawomir, steved, vdronov, williams, wmealing, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's random number generator API. A null pointer dereference in the rngapi_reset function may result in denial of service, crashing the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:31:11 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: 1485815, 1519088, 1519089, 1519090, 1519091, 1519092, 1519239    
Bug Blocks: 1490442, 1564094    

Description Pedro Sampaio 2017-11-17 21:22:50 UTC
A flaw was found in the kernel random number generator api. A null pointer dereference in in rngapi_reset function may result in denial of service.  Crashing the system.

References:

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

Upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8fded5925d0a733c46f8d0b5edd1c9b315882b1d

Comment 2 Wade Mealing 2017-11-30 06:14:49 UTC
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat
Enterprise Linux 5 and 6 and kernel-alt.

This issue affects the Linux kernel packages as shipped with Red Hat
Enterprise Linux 7 and MRG-2.

Future Linux kernel updates for the respective releases may address this issue.

Comment 4 Pedro Sampaio 2017-11-30 13:41:57 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1519239]

Comment 5 Pedro Sampaio 2017-11-30 13:42:54 UTC
Acknowledgments:

Name: ChunYu Wang (Red Hat)

Comment 8 Marcus Meissner 2017-12-12 10:36:32 UTC
do you have any reference to a patch for this bug?

Comment 9 Wade Mealing 2017-12-13 04:59:14 UTC
As per comment #0, I believe it was fixed in the upstream refactor. It does not affect current upstream.

The simple fix is to put a check in rngapi_reset checking for a slen of 0 then setting seed to null.

Comment 10 Wade Mealing 2018-04-06 06:48:24 UTC
*** Bug 1490437 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2018-04-10 08:09:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0676 https://access.redhat.com/errata/RHSA-2018:0676

Comment 12 errata-xmlrpc 2018-04-10 09:32:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1062 https://access.redhat.com/errata/RHSA-2018:1062