Bug 2121289 (CVE-2021-33643) - CVE-2021-33643 libtar: out-of-bounds read in gnu_longlink
Summary: CVE-2021-33643 libtar: out-of-bounds read in gnu_longlink
Keywords:
Status: NEW
Alias: CVE-2021-33643
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: 2121291 2121326
Blocks: 2117835
TreeView+ depends on / blocked
 
Reported: 2022-08-25 05:08 UTC by Sandipan Roy
Modified: 2022-10-12 12:51 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 flaw allows an attacker who submits a crafted tar file with the size in the header struct being 0 to trigger a calling of malloc(0) for a variable gnu_longlink, causing an out-of-bounds read.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Sandipan Roy 2022-08-25 05:08:51 UTC
An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink, causing an out-of-bounds read.

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

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

Affects: fedora-all [bug 2121291]

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 4 Karel Volný 2022-10-12 10:26:56 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?

Comment 5 Sandipan Roy 2022-10-12 12:51:22 UTC
In reply to comment #4:
> (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?

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


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