Skip to content

Commit b94c22f

Browse files
committed
opensc: patch for CVE-2020-26570, CVE-2020-26572
(cherry picked from commit c4237e2)
1 parent 7c2a362 commit b94c22f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

pkgs/tools/security/opensc/default.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ stdenv.mkDerivation rec {
1616
sha256 = "0mg8qmhww3li1isfgvn5hang1hq58zra057ilvgci88csfziv5lv";
1717
};
1818

19+
patches = [
20+
(fetchpatch {
21+
# https://nvd.nist.gov/vuln/detail/CVE-2020-26570
22+
name = "CVE-2020-26570.patch";
23+
url = "https://github.com/OpenSC/OpenSC/commit/6903aebfddc466d966c7b865fae34572bf3ed23e.patch";
24+
sha256 = "sha256-aB9iCVcdp9zFhZiSv5A399Ttj7NUHRVgXr0EfmMwKN4=";
25+
})
26+
(fetchpatch {
27+
# https://nvd.nist.gov/vuln/detail/CVE-2020-26572
28+
name = "CVE-2020-26572.patch";
29+
url = "https://github.com/OpenSC/OpenSC/commit/9d294de90d1cc66956389856e60b6944b27b4817.patch";
30+
sha256 = "sha256-gKJaR5K+NaXh4NeTkGpzHzHCdpt6n54Hnt1GAq0tA9o=";
31+
})
32+
];
33+
1934
nativeBuildInputs = [ pkgconfig autoreconfHook ];
2035
buildInputs = [
2136
zlib readline openssl libassuan

0 commit comments

Comments
 (0)