Bug 1721967 (CVE-2019-12818)

Summary: CVE-2019-12818 kernel: null-pointer dereference in function nfc_llcp_build_tlv in net/nfc/llcp_commands.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jkacur, john.j5live, jonathan, josef, jross, jstancek, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, matt, mchehab, mcressma, mjg59, mlangsdo, nmurray, plougher, rt-maint, rvrbovsk, steved, williams, wmealing
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:07:55 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: 1721969    
Bug Blocks: 1722675    

Description Dhananjay Arunesh 2019-06-19 10:26:38 UTC
An issue was discovered in the Linux kernels implementation of NFC drivers. The
nfc_llcp_build_tlv function in net/nfc/llcp_commands.c may return NULL. If the
caller does not check for this, it will trigger a NULL pointer dereference. This
will cause denial of service. This affects nfc_llcp_build_gb in
net/nfc/llcp_core.c.

References:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=58bdd544e2933a21a51eecf17c3f5f94038261b5
https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.20.15
https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5

Comment 1 Dhananjay Arunesh 2019-06-19 10:28:04 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1721969]

Comment 2 Justin M. Forbes 2019-06-19 13:04:37 UTC
This issue was fixed for Fedora in the 4.20.15 stable update.

Comment 5 Product Security DevOps Team 2019-07-12 13:07:55 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-12818