-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kavyasree
committed
Nov 19, 2024
1 parent
ecd289e
commit 4a066d8
Showing
6 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From aaba852a19b5ed717a48e62baa277966cdbdcb05 Mon Sep 17 00:00:00 2001 | ||
From: kavyasree <[email protected]> | ||
Date: Tue, 19 Nov 2024 10:23:25 +0530 | ||
Subject: [PATCH] Fix CVE-2022-48303 | ||
|
||
--- | ||
src/list.c | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/src/list.c b/src/list.c | ||
index d7ef441..20ae4ee 100644 | ||
--- a/src/list.c | ||
+++ b/src/list.c | ||
@@ -888,6 +888,12 @@ from_header (char const *where0, size_t digs, char const *type, | ||
<< (CHAR_BIT * sizeof (uintmax_t) | ||
- LG_256 - (LG_256 - 2))); | ||
value = (*where++ & ((1 << (LG_256 - 2)) - 1)) - signbit; | ||
+ if (where == lim) | ||
+ { | ||
+ if (type && !silent) | ||
+ ERROR ((0, 0, _("Archive base-256 value is invalid"))); | ||
+ return -1; | ||
+ } | ||
for (;;) | ||
{ | ||
value = (value << LG_256) + (unsigned char) *where++; | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
Summary: Archiving program | ||
Name: tar | ||
Version: 1.34 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv3+ | ||
URL: https://www.gnu.org/software/tar | ||
Group: Applications/System | ||
Vendor: Microsoft Corporation | ||
Distribution: Mariner | ||
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz | ||
Patch0: CVE-2022-48303.patch | ||
|
||
%description | ||
Contains GNU archiving program | ||
|
||
%prep | ||
%setup -q | ||
%autosetup -p1 | ||
%build | ||
FORCE_UNSAFE_CONFIGURE=1 ./configure \ | ||
--prefix=%{_prefix} \ | ||
|
@@ -43,6 +44,9 @@ make %{?_smp_mflags} check | |
%{_mandir}/*/* | ||
|
||
%changelog | ||
* Tue Nov 19 2024 Kavya Sree Kaitepalli <[email protected]> - 1.34-3 | ||
- Fix CVE-2022-48303 by patching | ||
|
||
* Wed Sep 20 2023 Jon Slobodzian <[email protected]> - 1.34-2 | ||
- Recompile with stack-protection fixed gcc version (CVE-2023-4039) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters