diff options
| author | Josh Law <objecting@objecting.org> | 2026-03-19 08:43:24 +0900 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-03-19 08:43:24 +0900 |
| commit | 1c04fa80118cc20a943b9ec5b861a824fa90db1c (patch) | |
| tree | b1b399b0f7131b2f925a157156133562f2df0960 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | bf45f7c591939196d043e30bc5961ef30fcff52d (diff) | |
lib/bootconfig: fix off-by-one in xbc_verify_tree() next node check
Valid node indices are 0 to xbc_node_num-1, so a next value equal to
xbc_node_num is out of bounds. Use >= instead of > to catch this.
A malformed or corrupt bootconfig could pass tree verification with
an out-of-bounds next index. On subsequent tree traversal at boot
time, xbc_node_get_next() would return a pointer past the allocated
xbc_nodes array, causing an out-of-bounds read of kernel memory.
Link: https://lore.kernel.org/all/20260318155919.78168-4-objecting@objecting.org/
Signed-off-by: Josh Law <objecting@objecting.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
