Bug 1879981 (CVE-2020-25643)

Summary: CVE-2020-25643 kernel: improper input validation in ppp_cp_parse_cr function leads to memory corruption and read overflow
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: 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, nmurray, ptalbert, qzhao, rt-maint, rvrbovsk, security-response-team, steved, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Linux kernel 5.9-rc7 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the HDLC_PPP module of the Linux kernel. Memory corruption and a read overflow is caused by improper input validation in the ppp_cp_parse_cr function which can cause the system to crash or cause a denial of service. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 22:19:01 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: 1882078, 1882079, 1882080, 1882081, 1882082, 1883886    
Bug Blocks: 1878235    

Description Guilherme de Almeida Suckevicz 2020-09-17 14:01:23 UTC
A flaw was found in the Linux Kernel in the HDLC_PPP module. Improper input validation in the ppp_cp_parse_cr function in hdlc_ppp.c leads to memory corruption and read overflow.

Reference and upstream patch:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=66d42ed8b25b64eb63111a2b8582c5afc8bf1105

Comment 3 Alex 2020-09-23 18:34:59 UTC
Mitigation:

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

Comment 7 Alex 2020-09-30 13:08:16 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1883886]

Comment 8 Justin M. Forbes 2020-10-01 13:00:04 UTC
This was fixed for Fedora with the 5.8.12 stable kernel updates.

Comment 11 Alex 2020-10-04 19:25:14 UTC
Acknowledgments:

Name: ChenNan Of Chaitin (Security Research Lab)

Comment 12 Alex 2020-10-04 19:25:18 UTC
Statement:

This flaw is rated as a having Moderate impact, because the bug can be triggered only if PPP protocol enabled.

Comment 13 errata-xmlrpc 2020-12-15 11:12:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:5437 https://access.redhat.com/errata/RHSA-2020:5437

Comment 14 errata-xmlrpc 2020-12-15 11:17:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:5441 https://access.redhat.com/errata/RHSA-2020:5441

Comment 15 Product Security DevOps Team 2020-12-15 22:19:01 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-25643

Comment 16 errata-xmlrpc 2021-05-18 13:20:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:1578 https://access.redhat.com/errata/RHSA-2021:1578

Comment 17 errata-xmlrpc 2021-05-18 14:40:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:1739 https://access.redhat.com/errata/RHSA-2021:1739