Mikulas Patocka
24d7e5e39b
dm-integrity: fix the 'fix_hmac' option
...
When the "fix_hmac" argument is used, dm-integrity is supposed to check
the superblock with the journal_mac. However, there was a logic bug in
the code - the code only checked the superblock mac if the bit
SB_FLAG_FIXED_HMAC was set in the superblock. So, the attacker could
clear this bit and bypass the checking trivially.
This commit changes dm-integrity so that when the user specified the
"fix_hmac" flag and the superblock doesn't have the bit
SB_FLAG_FIXED_HMAC set, the activation is aborted with an error.
Unfortunatelly, there's a bug in the integritysetup tool that when using
the 'open' command it passes the "fix_hmac" argument to the kernel even
if the user specified --integrity-legacy-hmac. The bug will be fixed in
the upcoming 2.8.7 release.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com >
Reported-by: Shukai Ni <shukai.ni@kuleuven.be >
2026-07-10 14:38:01 +02:00
..
2026-04-03 05:11:08 -06:00
2026-07-08 22:33:34 +02:00
2026-06-16 13:20:54 +05:30
2026-04-20 19:56:44 +02:00
2026-02-21 17:09:51 -08:00
2024-11-20 11:38:04 +01:00
2026-02-21 17:09:51 -08:00
2026-03-26 18:31:15 +01:00
2026-02-21 17:09:51 -08:00
2024-11-20 11:38:04 +01:00
2026-03-09 14:53:39 +01:00
2026-03-02 16:50:18 +01:00
2026-06-16 13:20:54 +05:30
2026-04-10 15:16:06 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-01-28 15:44:02 +01:00
2026-03-30 12:06:33 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-07-08 22:33:35 +02:00
2026-02-21 17:09:51 -08:00
2025-12-10 19:28:22 +01:00
2026-02-21 17:09:51 -08:00
2026-05-04 14:53:52 +02:00
2026-05-04 14:53:52 +02:00
2026-03-18 15:36:33 +01:00
2026-07-08 22:33:35 +02:00
2026-07-10 14:38:01 +02:00
2026-02-21 17:09:51 -08:00
2026-05-18 14:27:11 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-07-08 22:33:20 +02:00
2026-03-02 16:54:36 +01:00
2026-02-21 17:09:51 -08:00
2025-06-30 16:20:04 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-02 18:43:12 +01:00
2026-05-31 19:09:17 +08:00
2026-02-21 17:09:51 -08:00
2026-05-26 11:01:55 -06:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-10-20 15:22:21 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-07-08 22:33:34 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-07-08 22:33:34 +02:00
2026-07-08 22:33:34 +02:00
2026-03-27 22:19:17 +01:00
2026-01-21 14:06:23 +01:00
2026-01-21 14:06:23 +01:00
2026-03-09 15:11:41 +01:00
2026-03-27 22:19:17 +01:00
2024-05-20 15:51:19 -04:00
2026-01-14 13:12:21 +01:00
2026-06-08 14:59:14 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2024-11-20 11:38:04 +01:00
2026-07-08 22:33:35 +02:00
2025-11-05 08:07:21 -07:00
2026-05-12 12:58:13 +02:00
2026-05-12 12:58:13 +02:00
2025-01-13 07:36:29 -08:00
2026-06-21 04:19:27 +08:00
2026-06-21 04:19:27 +08:00
2026-02-22 08:26:33 -08:00
2025-03-05 00:28:39 +08:00
2026-02-21 17:09:51 -08:00
2026-06-21 04:19:27 +08:00
2026-06-21 04:19:27 +08:00
2026-05-31 19:09:18 +08:00
2026-06-01 12:52:20 -06:00
2026-04-28 20:44:37 +08:00
2026-06-21 04:44:42 +08:00
2026-01-26 13:17:38 +08:00
2026-04-07 13:09:22 +08:00
2026-02-21 20:03:00 -08:00
2026-06-25 09:56:47 -07:00
2026-06-21 03:16:24 +08:00
2026-06-21 02:14:44 +08:00
2026-01-26 13:17:38 +08:00