Bug 2121297 (CVE-2021-33646) - CVE-2021-33646 libtar: memory leak found in th_read() function
Summary: CVE-2021-33646 libtar: memory leak found in th_read() function
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-33646
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: 2121304 2121328
Blocks: 2117835
TreeView+ depends on / blocked
 
Reported: 2022-08-25 05:16 UTC by Sandipan Roy
Modified: 2023-05-16 14:53 UTC (History)
4 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_longname after allocating memory, which may cause a memory leak.
Clone Of:
Environment:
Last Closed: 2023-05-16 14:53:00 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:58 UTC

Description Sandipan Roy 2022-08-25 05:16:07 UTC
The th_read() function doesn’t free a variable t->th_buf.gnu_longname 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:46:17 UTC
Created libtar tracking bugs for this issue:

Affects: fedora-all [bug 2121304]

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 6 Karel Volný 2022-10-12 10:35:36 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 7 Sandipan Roy 2022-10-12 12:52:10 UTC
In reply to comment #6:
> (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 errata-xmlrpc 2023-05-16 08:25:57 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 11 Product Security DevOps Team 2023-05-16 14:52:58 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-33646


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