Bug 2121295 (CVE-2021-33645) - CVE-2021-33645 libtar: memory leak found in th_read() function
Summary: CVE-2021-33645 libtar: memory leak found in th_read() function
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-33645
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: 2121296 2121327
Blocks: 2117835
TreeView+ depends on / blocked
 
Reported: 2022-08-25 05:13 UTC by Sandipan Roy
Modified: 2023-05-16 14:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libtar. This security vulnerability occurs because the th_read() function in libtar doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak.
Clone Of:
Environment:
Last Closed: 2023-05-16 14:51:55 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2898 0 None None None 2023-05-16 08:25:54 UTC

Description Sandipan Roy 2022-08-25 05:13:33 UTC
The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak.

https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807

Comment 1 Sandipan Roy 2022-08-25 05:15:31 UTC
Created libtar tracking bugs for this issue:

Affects: fedora-all [bug 2121296]

Comment 3 Kamil Dudka 2022-08-25 15:03:36 UTC
The security fixes in question seem to be available in this source RPM package: https://repo.openeuler.org/openEuler-22.03-LTS/update/source/Packages/libtar-1.2.20-21.oe2203.src.rpm

Comment 8 Karel Volný 2022-10-12 10:35:22 UTC
(In reply to Sandipan Roy from comment #0)
> https://www.openeuler.org/en/security/safety-bulletin/detail.
> html?id=openEuler-SA-2022-1807

this returns 404 not found

do we have a reproducer for the issue?

Comment 9 Sandipan Roy 2022-10-12 12:51:50 UTC
In reply to comment #8:
> (In reply to Sandipan Roy from comment #0)
> > https://www.openeuler.org/en/security/safety-bulletin/detail.
> > html?id=openEuler-SA-2022-1807
> 
> this returns 404 not found
> 
> do we have a reproducer for the issue?

I'm also seeing 404 now, I don't have any reproducer or test cases.

Comment 10 Sandipan Roy 2022-10-13 06:43:11 UTC
I got the correct link, 
https://repo.openeuler.org/security/data/cvrf/2022/cvrf-openEuler-SA-2022-1807.xml

Comment 11 Karel Volný 2022-10-18 08:42:40 UTC
(In reply to Sandipan Roy from comment #10)
> I got the correct link, 
> https://repo.openeuler.org/security/data/cvrf/2022/cvrf-openEuler-SA-2022-
> 1807.xml

thanks, but it doesn't seem to add anything valuable ...

Comment 30 errata-xmlrpc 2023-05-16 08:25:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2898 https://access.redhat.com/errata/RHSA-2023:2898

Comment 31 Product Security DevOps Team 2023-05-16 14:51:53 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-2021-33645


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