Bug 1882508 (CVE-2020-26088)

Summary: CVE-2020-26088 kernel: missing CAP_NET_RAW check in NFC socket creation in net/nfc/rawsock.c allows local attackers to create raw sockets
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, bhu, blc, bmasney, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jlelli, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, masami256, mchehab, mcressma, mjg59, mlangsdo, mleitner, nmurray, ptalbert, qzhao, rt-maint, rvrbovsk, steved, 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 missing capabilities check when creating NFC raw sockets could be used by local attackers to create raw sockets, bypassing security mechanisms allowing them to create or listen to NFC communication frames.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-08 02:21:16 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: 1882509, 1885471, 1885472    
Bug Blocks: 1882510    

Description Guilherme de Almeida Suckevicz 2020-09-24 18:53:49 UTC
A missing capabilities check when creating NFC raw sockets could be used by local attackers to create raw sockets, bypassing security mechanisms allowing them to create or listen to NFC communication frames.

This could give a local attacker advanced information about the systems environment and devices connected nearby.  It may also allow an attacker to impersonate an NFC device.

At this time no Red Hat product ships NFC enabled code is is not affected.

Reference and upstream patch:
https://github.com/torvalds/linux/commit/26896f01467a28651f7a536143fe5ac8449d4041

Comment 1 Guilherme de Almeida Suckevicz 2020-09-24 18:55:24 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1882509]

Comment 2 Justin M. Forbes 2020-09-24 20:04:06 UTC
This was fixed for Fedora with the 5.7.16 stable kernel updates.

Comment 6 Wade Mealing 2020-10-02 07:37:21 UTC
Mitigation:


As the nfc module will be auto-loaded when required, its use can be disabled  by preventing the module from loading with the following instructions:

# echo "install nfc /bin/true" >> /etc/modprobe.d/disable-nfc.conf 
 
The system will need to be restarted if the NFC module is loaded. In most circumstances, the NFC kernel modules will be unable to be unloaded while any interfaces are active and the protocol is in use.

If the system requires this module to work correctly, this mitigation may not be suitable.

If you need further assistance, see KCS article https://access.redhat.com/solutions/41278 or contact Red Hat Global Support Services.

Comment 11 Wade Mealing 2020-10-08 01:15:58 UTC
Removed affected state, updated comment #0.

Comment 12 Product Security DevOps Team 2020-10-08 02:21:16 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-2020-26088