Bug 2282919 (CVE-2021-47496)

Summary: CVE-2021-47496 kernel: net/tls: Fix flipped sign in tls_err_abort() calls
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jfaracco, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, ldoskova, lgoncalv, mbenatto, mleitner, mmilgram, mstowell, nmurray, ptalbert, rhel-process-autobot, rparrazo, rrobaina, rvrbovsk, scweaver, sidakwo, sukulkar, tglozar, vkumar, watson-tool-maintainers, wcosta, williams, wmealing, ycote, ykopkova
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.4.157, kernel 5.10.77, kernel 5.14.16, kernel 5.15 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's net/tls (Kernel Transport Layer Security) subsystem. A local attacker could exploit this flaw to cause memory corruption and a Denial of Service (DoS) by crashing the system. The issue occurs due to inconsistent error sign handling in socket error reporting, where negative error codes are inadvertently interpreted as positive values. This causes the kernel to treat error conditions as successful byte transfers, resulting in buffer length underflows and corrupted memory references during data movement operations.
Story Points: ---
Clone Of: Environment:
Last Closed: 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:    
Bug Blocks: 2282978    

Description ybuenos 2024-05-23 10:18:28 UTC
In the Linux kernel, the following vulnerability has been resolved:

net/tls: Fix flipped sign in tls_err_abort() calls

The Linux kernel CVE team has assigned CVE-2021-47496 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024052242-CVE-2021-47496-4d0d@gregkh/T

Comment 2 Alex 2024-06-09 17:11:54 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47496 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags REMOTE DANGER INIT WARNONLY SKB  ; these flags parsed automatically based on patch data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.