]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Validate framework notification message layout
authorSudeep Holla <sudeep.holla@kernel.org>
Tue, 28 Apr 2026 18:33:32 +0000 (19:33 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 5 May 2026 15:42:48 +0000 (16:42 +0100)
commit4a1cc9e96b311d2609a6f963a5e35bd4ae730d97
tree87594a9d3f4153a24bf3391fa0f91eba2cb1ab61
parent2af18f8e36b277730527cacc2256b1332f56aa28
firmware: arm_ffa: Validate framework notification message layout

Framework notifications carry an indirect message in the shared RX
buffer. Validate the reported offset and size before using them, reject
zero-length payloads, and ensure that any non-header payload starts at
the UUID field rather than in the middle of the message header.

Use the validated offset and size values for both kmemdup() and the UUID
parsing path so malformed firmware data cannot drive an out-of-bounds
read or an oversized allocation.

Fixes: 285a5ea0f542 ("firmware: arm_ffa: Add support for handling framework notifications")
Link: https://patch.msgid.link/20260428-ffa_fixes-v2-8-8595ae450034@kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_ffa/driver.c