Bug 1399519 (CVE-2016-9313)

Summary: CVE-2016-9313 kernel: security/keys/big_key.c mishandles unsuccessful crypto registration
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agordeev, aquini, arm-mgr, bhu, dhoward, esammons, fhrbata, gansalmon, iboverma, ichavero, itamar, jforbes, jkacur, jkastner, joelsmith, jonathan, jross, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, lwang, madhu.chinakonda, matt, mchehab, mcressma, mguzik, nmurray, pholasek, plougher, rt-maint, rvrbovsk, slawomir, 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:
The implementation of big key management in security/keys/big_key.c in the Linux kernel before 4.8.7 mishandles unsuccessful crypto registration in conjunction with successful key-type registration, which allows local users to cause a denial of service (NULL pointer dereference and panic) or possibly have unspecified other impact via a crafted application that uses the big_key data type.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-25 15:33:20 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: 1399522    
Bug Blocks: 1399529    

Description Andrej Nemec 2016-11-29 09:06:13 UTC
The linux kernels implementation of "big key" management in security/keys/big_key.c in the Linux kernel before 4.8.7 mishandles unsuccessful
crypto registration in conjunction with successful key-type registration, which
allows local users to cause a denial of service (NULL pointer dereference and
panic) or possibly have unspecified other impact via a crafted application that
uses the big_key data type.

As per the patch notes the Red Hat Enterprise Linux code contains neither big_key_rng and big_key_blkcipher, which can be set to null.  The Red Hat Enterprise Linux source contains no blkcipher code to be affected.

References:

http://seclists.org/oss-sec/2016/q3/130

Upstream patch:

https://github.com/torvalds/linux/commit/7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb

Comment 1 Andrej Nemec 2016-11-29 09:08:37 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1399522]

Comment 2 Justin M. Forbes 2016-11-29 16:54:52 UTC
This was fixed in the 4.8.7 kernel update which was available to all fedora releases on November 17 2016

Comment 3 Wade Mealing 2016-12-21 01:53:30 UTC
Statement:

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