Skip to content

Commit

Permalink
iwd: apply patches for CVE-2023-52161 and buffer overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed May 1, 2024
1 parent 8e48b76 commit b1da7c4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkgs/os-specific/linux/iwd/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchgit
, fetchpatch
, autoreconfHook
, pkg-config
, ell
Expand All @@ -20,6 +21,24 @@ stdenv.mkDerivation rec {
sha256 = "sha256-i+2R8smgLXooApj0Z5e03FybhYgw1X/kIsJkrDzW8y4=";
};

patches = [
(fetchpatch {
name = "CVE-2023-52161.patch";
url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git/patch/?id=6415420f1c92012f64063c131480ffcef58e60ca";
hash = "sha256-bN5mxdWDyKEC2IyyG2vlzTEAL57C4uC7GAJA3jSXJHg=";
})
(fetchpatch {
name = "netdev-buffer-overflow-32-byte-ssid.patch";
url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git/patch/?id=8d68b33e763aced6d419df9f6534760d2c890279";
hash = "sha256-BSduzwVUTEcqjVwD88qJYgItApcQZwU43u9gbNMDs8I=";
})
(fetchpatch {
name = "erp-buffer-overflow-32-byte-ssid.patch";
url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git/patch/?id=bdaae53cf828a1f6ea7a7b57d7d6ebcc7b70ac43";
hash = "sha256-K/Ib0azlZ0UlFqcqs+8dSfj0hh0j0dZYpfB9f6tEqc8=";
})
];

outputs = [ "out" "man" "doc" ]
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "test";

Expand Down

0 comments on commit b1da7c4

Please sign in to comment.