Bug 2000627 (CVE-2021-3744) - CVE-2021-3744 kernel: crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd()
Summary: CVE-2021-3744 kernel: crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd()
Keywords:
Status: NEW
Alias: CVE-2021-3744
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1997593 1997594 1997595 2009413
Blocks: 1998463
TreeView+ depends on / blocked
 
Reported: 2021-09-02 14:23 UTC by Alex
Modified: 2021-11-09 11:12 UTC (History)
42 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. A memory leak in the ccp-ops crypto driver can allow attackers to cause a denial of service. This vulnerability is similar with the older CVE-2019-18808. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Alex 2021-09-02 14:23:01 UTC
A memory leak in the ccp_run_aes_gcm_cmd() function in drivers/crypto/ccp/ccp-ops.c in the Linux kernel allows attackers to cause a denial of service (memory consumption).

The patch for this one fixes:
1) If we ccp_init_data() fails for &src then we need to free aad.
   Use goto e_aad instead of goto e_ctx.
2) The label to free the &final_wa was named incorrectly as "e_tag" but
   it should have been "e_final_wa".  One error path leaked &final_wa.
3) The &tag was leaked on one error path.  In that case, I added a free
   before the goto because the resource was local to that block.

This vulnerability is similar with the older CVE-2019-18808.

Reference:
https://seclists.org/oss-sec/2021/q3/164

Comment 7 Alex 2021-09-30 15:17:17 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2009413]

Comment 9 Vladis Dronov 2021-11-09 11:12:19 UTC
the fixing upstream commit is present since v5.15-rc4 and is:
505d9dcb0f7d ("crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd()")


Note You need to log in before you can comment on or make changes to this bug.