s390 fixes for 7.4-rc5
Alexander Gordeev
maintainerHi Linus,
please pull s390 fixes for 7.4-rc5.
Thanks,
Alexander Gordeev
The following changes since commit 64ee7f863655e67f26947420516daba4e232675d:
s390/dcssblk: Initialize device semaphore before sysfs registration (2026-11-05 17:54:25 +0100)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-7.4-3
for you to fetch changes up to 23a04cb4f2bdbfc87fc4e1c15450e7f8cfc9842a:
s390/cert_store: Only allow the kernel to create cert_store_key keys (2026-11-23 15:15:58 +0100)
----------------------------------------------------------------
s390 fixes for 7.4-rc5
- Fix in the cert_store code keyring locking, lifetime handling, missing error and return code checks, several reference leaks and potential use-after-free issues caused by unbalanced keyring reference counting
- Look up the cert_store keyring only in the user session keyring. As result a foreign keyring named "cert_store", which a task may have inherited, is no longer destroyed during refresh
- Fix out-of-bounds reads in hash validation and in Verification Certificate Entry (VCE) debug output, avoid copying uninitialized DIAG 320 data to the debug area, and print the correct value of max_vcxe_length
- Allocate the cert_store keyring with a link restriction, so that arbitrary keys cannot be linked into it
- Allow only the kernel to create keys of type cert_store_key. This prevents users from creating such keys with short descriptions, which could disclose kernel heap memory via /proc/keys
----------------------------------------------------------------
Anastasia Eskova (2):
s390/cert_store: Allocate keyring with link restriction s390/cert_store: Only allow the kernel to create cert_store_key keys
Heiko Carstens (14):
s390/cert_store: Fix return code handling in invalidate_keyring_keys() s390/cert_store: Fix potential use-after-free in invalidate_keyring_keys() s390/cert_store: Check key_lookup() return code in invalidate_keyring_keys() s390/cert_store: Unlink before invalidate in invalidate_keyring_keys() s390/cert_store: Fix cs_keyring reference leak in fill_cs_keyring() s390/cert_store: Fix potential use-after-free caused by find_cs_keyring() s390/cert_store: Remove unnecessary static specifier in create_cs_keyring() s390/cert_store: Fix error handling of get_user_session_keyring() s390/cert_store: Fix keyring refcount handling in get_user_session_keyring() s390/cert_store: Do not search the process keyrings for the cert_store keyring s390/cert_store: Validate hash length in check_certificate_valid() s390/cert_store: Fix max_vcxe_length output in pr_dbf_vcssb() s390/cert_store: Fix out-of-bounds read in pr_dbf_vce() s390/cert_store: Initialize ism array in query_diag320_subcodes()
Jarkko Sakkinen (1):
s390/cert_store: Hold keyring->sem while reading the keyring
arch/s390/kernel/cert_store.c | 139 ++++++++++++++++++++++++++---------------- 1 file changed, 87 insertions(+), 52 deletions(-)
The pull request you sent on Fri, 27 Nov 2026 10:51:36 +0100:
The pull request you sent on Fri, 27 Nov 2026 10:51:36 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.gittags/s390-7.4-3
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/27db887a98fe217ef96d2d9f0c61804f63a145f6
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html