diff options
| author | xietangxin <xietangxin@h-partners.com> | 2026-10-31 15:15:08 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-04 18:46:26 +0100 |
| commit | bd93c4e59c5132282c01f142806e307c7380e7ea (patch) | |
| tree | 63a69525f8a84487a327bb5381818b6b0f9a7414 /tools/perf/scripts/python | |
| parent | 73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f (diff) | |
dm-crypt: reject integrity_key_size with non-authenc AEAD ciphers
When integrity_key_size parameter is paired with a pure AEAD cipher that
is not an authenc composite, crypt_ctr_auth_cipher() returns 0 early
without allocating cc->authenc_key, but cc->key_mac_size remains
non-zero because CRYPT_KEY_MAC_SIZE_SET was set during option parsing.
As a result crypt_copy_authenckey() dereferences NULL crashes the kernel.
Reject the contradictory configuration explicitly instead of silently
returning 0, so userspace gets a clear -EINVAL.
Fixes: 4441686b24a1 ("dm-crypt: Allow to specify the integrity key size as option")
Cc: stable@vger.kernel.org
Reported-by: syzbot+ff132cb52bce4f44ecc9@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=ff132cb52bce4f44ecc9
Assisted-by: LLM
Signed-off-by: xietangxin <xietangxin@h-partners.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
