Skip to content

Commit

Permalink
mbedtls: add patch for CVE-2024-28755
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Apr 13, 2024
1 parent 29386c7 commit de99195
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/libraries/mbedtls/3.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{ callPackage }:
{ callPackage, fetchpatch }:

callPackage ./generic.nix {
version = "3.5.2";
hash = "sha256-lVGmnSYccNmRS6vfF/fDiny5cYRPc/wJBpgciFLPUvM=";

patches = [
(fetchpatch {
name = "CVE-2024-28755.patch";
url = "https://github.com/Mbed-TLS/mbedtls/commit/ad736991bb59211118a29fe115367c24495300c2.patch";
hash = "sha256-MUnGT2ptlBikpZYL6+cvoF7fOiD2vMK4cbkgevgyl60=";
})
];
}
3 changes: 3 additions & 0 deletions pkgs/development/libraries/mbedtls/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, version
, hash
, fetchFromGitHub
, patches ? []

, cmake
, ninja
Expand All @@ -23,6 +24,8 @@ stdenv.mkDerivation rec {
inherit hash;
};

inherit patches;

nativeBuildInputs = [ cmake ninja perl python3 ];

strictDeps = true;
Expand Down

0 comments on commit de99195

Please sign in to comment.