Skip to content

Fix a null dereference crash - #25

Open
adisbladis wants to merge 1 commit into
linux-msm:masterfrom
adisbladis:ssid-null-deref
Open

Fix a null dereference crash#25
adisbladis wants to merge 1 commit into
linux-msm:masterfrom
adisbladis:ssid-null-deref

Conversation

@adisbladis

Copy link
Copy Markdown

DIAG_CMD_OP_SET_ALL_MSG_MASK broadcasts with a null ssid range, but diag_cntl_send_msg_mask() dereferences the range pointer and segfaults when enabling all F3 message masks.

Fix the null (broadcast all) case, and send every real ssid range via the appropriate function.

@adisbladis
adisbladis force-pushed the ssid-null-deref branch 2 times, most recently from da194b9 to de88662 Compare August 1, 2026 11:48
DIAG_CMD_OP_SET_ALL_MSG_MASK broadcasts with a null ssid range, but
`diag_cntl_send_msg_mask()` dereferences the range pointer and segfaults
when enabling all F3 message masks.

Fix the null (broadcast all) case, and send every real ssid range via
the appropriate function.

Signed-off-by: adisbladis <adisbladis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant