Skip to content

Commit 32b3edd

Browse files
authored
udisks2: Fix CVE-2025-6019 (#417763)
2 parents 8cde6e8 + ce1de30 commit 32b3edd

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

pkgs/by-name/li/libblockdev/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch,
56
autoreconfHook,
67
pkg-config,
78
gtk-doc,
@@ -44,6 +45,14 @@ stdenv.mkDerivation (finalAttrs: {
4445
hash = "sha256-Q7610i+2PQi+Oza3c2SwPneljrb+1cuFA4K4DQTpt8A=";
4546
};
4647

48+
patches = [
49+
# CVE-2025-6019: https://www.openwall.com/lists/oss-security/2025/06/17/5
50+
(fetchpatch {
51+
url = "https://github.com/storaged-project/libblockdev/commit/4e35eb93e4d2672686789b9705623cc4f9f85d02.patch";
52+
hash = "sha256-3pQxvbFX6jmT5LCaePoVfvPTNPoTPPhT0GcLaGkVVso=";
53+
})
54+
];
55+
4756
outputs = [
4857
"out"
4958
"dev"

pkgs/os-specific/linux/udisks/2-default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch,
56
replaceVars,
67
pkg-config,
78
gnused,
@@ -79,6 +80,13 @@ stdenv.mkDerivation rec {
7980
util-linux
8081
];
8182
})
83+
84+
# CVE-2025-6019: https://www.openwall.com/lists/oss-security/2025/06/17/5
85+
(fetchpatch {
86+
name = "CVE-2025-6019-2.patch";
87+
url = "https://www.openwall.com/lists/oss-security/2025/06/17/5/2";
88+
hash = "sha256-pgTA6yxQ1o9OU3qBeV1lh2O6mBkaUcc9md4uwFwz+AM=";
89+
})
8290
];
8391

8492
strictDeps = true;

0 commit comments

Comments
 (0)