diff options
author | 2025-03-22 14:10:07 -0700 | |
---|---|---|
committer | 2025-03-22 14:10:07 -0700 | |
commit | fcea541800539899ba0073259cd35d615488a415 (patch) | |
tree | b40cac95446261209cea5aea9a7d677ed9a4fdee /include | |
parent | Merge tag 'io_uring-6.14-20250322' of git://git.kernel.dk/linux (diff) | |
parent | keys: Fix UAF in key_put() (diff) | |
download | wireguard-linux-fcea541800539899ba0073259cd35d615488a415.tar.xz wireguard-linux-fcea541800539899ba0073259cd35d615488a415.zip |
Merge tag 'keys-next-6.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
Pull keys fix from Jarkko Sakkinen:
"Fix potential use-after-free in key_put()"
* tag 'keys-next-6.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
keys: Fix UAF in key_put()
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/key.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/key.h b/include/linux/key.h index 074dca3222b9..ba05de8579ec 100644 --- a/include/linux/key.h +++ b/include/linux/key.h @@ -236,6 +236,7 @@ struct key { #define KEY_FLAG_ROOT_CAN_INVAL 7 /* set if key can be invalidated by root without permission */ #define KEY_FLAG_KEEP 8 /* set if key should not be removed */ #define KEY_FLAG_UID_KEYRING 9 /* set if key is a user or user session keyring */ +#define KEY_FLAG_FINAL_PUT 10 /* set if final put has happened on key */ /* the key type and key description string * - the desc is used to match a key against search criteria |