git: 2d148ce84d29 - stable/12 - syscalls: fix modspecific_t stack content leak
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jul 2023 12:53:08 UTC
The branch stable/12 has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=2d148ce84d29321f5f1a0ccb405c5238f5859005 commit 2d148ce84d29321f5f1a0ccb405c5238f5859005 Author: Ka Ho Ng <khng@FreeBSD.org> AuthorDate: 2023-06-27 19:33:46 +0000 Commit: Ka Ho Ng <khng@FreeBSD.org> CommitDate: 2023-07-04 12:52:50 +0000 syscalls: fix modspecific_t stack content leak Zero-initialize the whole modspecific_t so that there would not be kernel stack content leak in the unused part. Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D40815 (cherry picked from commit 2cab2d43b83bddd44ecc1f267afb5e2725975ac7) --- sys/kern/kern_syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c index 035e169bbe0e..0af8e18890c8 100644 --- a/sys/kern/kern_syscalls.c +++ b/sys/kern/kern_syscalls.c @@ -164,7 +164,7 @@ kern_syscall_module_handler(struct sysent *sysents, struct module *mod, int what, void *arg) { struct syscall_module_data *data = arg; - modspecific_t ms; + modspecific_t ms = { 0 }; int error; switch (what) {