Bug 1776372 (CVE-2019-19080)

Summary: CVE-2019-19080 kernel: memory leaks in the nfp_flower_spawn_phy_reprs() function in drivers/net/ethernet/netronome/nfp/flower/main.c leads to DoS
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, airlied, bdettelb, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jlelli, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, lgoncalv, linville, masami256, mchehab, mcressma, mjg59, mlangsdo, nmurray, qzhao, rt-maint, rvrbovsk, steved, williams
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 way the NFP4000/NFP6000 TC Flower offload functionality in the Linux kernel handled memory cleanup on failures. This flaw allows an attacker to cause a denial of service and crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:13: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: 1776373, 1820496, 1820497, 1820498, 1820499    
Bug Blocks: 1776374    

Description Guilherme de Almeida Suckevicz 2019-11-25 14:37:24 UTC
Four memory leaks in the nfp_flower_spawn_phy_reprs() function in drivers/net/ethernet/netronome/nfp/flower/main.c in the Linux kernel before 5.3.4 allow attackers to cause a denial of service (memory consumption), aka CID-8572cea1461a.

Reference and upstream commit:
https://github.com/torvalds/linux/commit/8572cea1461a006bce1d06c0c4b0575869125fa4

Comment 1 Guilherme de Almeida Suckevicz 2019-11-25 14:38:10 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1776373]

Comment 2 Justin M. Forbes 2019-11-25 15:55:39 UTC
This was fixed for Fedora with the 5.3.4 stable kernel updates.

Comment 3 Petr Matousek 2020-04-03 08:03:45 UTC
Statement:

This issue is rated as having Low impact because of the low memory conditions needed to trigger this issue.

Comment 4 Petr Matousek 2020-04-03 08:03:49 UTC
Mitigation:

To mitigate this issue, prevent module nfp from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.