]> git.ipfire.org Git - thirdparty/linux.git/commit
dlm: validate length in dlm_search_rsb_tree
authorEzrak1e <ezrakiez@gmail.com>
Tue, 20 Jan 2026 15:35:06 +0000 (10:35 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 20 Jan 2026 18:07:31 +0000 (12:07 -0600)
commit080e5563f878c64e697b89e7439d730d0daad882
tree36a0f15c475f2162f977639530701c577e52e986
parent1416bd508c78bdfdb9ae0b4511369e5581f348ea
dlm: validate length in dlm_search_rsb_tree

The len parameter in dlm_dump_rsb_name() is not validated and comes
from network messages. When it exceeds DLM_RESNAME_MAXLEN, it can
cause out-of-bounds write in dlm_search_rsb_tree().

Add length validation to prevent potential buffer overflow.

Signed-off-by: Ezrak1e <ezrakiez@gmail.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c