[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: a97de7bff13b1cc825c1b1344eaed8d6c2d3e695 WARNING: Author mismatch between patch and upstream commit: Backport author: Keerthana K<keerthana.kalyanasundaram@xxxxxxxxxxxx> Commit author: Luiz Augusto von Dentz<luiz.von.dentz@xxxxxxxxx> Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.6.y | Present (different SHA1: 4ea65e2095e9) 6.1.y | Present (different SHA1: eea40d33bf93) 5.15.y | Not found 5.10.y | Not found Note: The patch differs from the upstream commit: --- 1: a97de7bff13b1 ! 1: 84bdcbff6c20c Bluetooth: RFCOMM: Fix not validating setsockopt user input @@ Metadata ## Commit message ## Bluetooth: RFCOMM: Fix not validating setsockopt user input + [ Upstream commit a97de7bff13b1cc825c1b1344eaed8d6c2d3e695 ] + syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. @@ Commit message Reported-by: syzbot <syzkaller@xxxxxxxxxxxxxxxx> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> + Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> + [Keerthana: No changes from v1 + link to v1: + https://lore.kernel.org/stable/2025012010-manager-dreamlike-b5c1@gregkh/] + Signed-off-by: Keerthana K <keerthana.kalyanasundaram@xxxxxxxxxxxx> ## net/bluetooth/rfcomm/sock.c ## @@ net/bluetooth/rfcomm/sock.c: static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.10.y | Success | Success |