Bug 2035338 (CVE-2021-45095)

Summary: CVE-2021-45095 kernel: refcount leak in pep_sock_accept() in net/phonet/pep.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, allarkin, bdettelb, bhu, brdeoliv, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, fpacheco, hdegoede, hkrzesin, jarod, jarodwilson, jburrell, jeremy, jfaracco, jforbes, jglisse, jlelli, jonathan, josef, jshortt, jstancek, jwboyer, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, steved, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Linux kernel 5.16-rc6 Doc Type: If docs needed, set a value
Doc Text:
A memory leak flaw in the Linux kernel's PhoNet (Phone Network protocol) functionality was found in the way user gets memory allocation fail inside function pep_sock_accept (for the failure branch). A local user could use this flaw to starve the resources causing a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-02 18:02:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2035339    
Bug Blocks: 2035340    

Description Guilherme de Almeida Suckevicz 2021-12-23 17:06:12 UTC
pep_sock_accept in net/phonet/pep.c in the Linux kernel through 5.15.8 has a refcount leak.

Reference and upstream patch:

Comment 1 Guilherme de Almeida Suckevicz 2021-12-23 17:06:58 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2035339]

Comment 2 Justin M. Forbes 2021-12-23 20:28:38 UTC
For fedora: # CONFIG_PHONET is not set