Thread (31 messages) 31 messages, 7 authors, 2024-10-16

Re: [PATCH net-next v3 4/9] net: af_can: do not leave a dangling sk pointer in can_create()

flat view

From: Kuniyuki Iwashima <hidden>
Date: 2024-10-14 21:32:43
Also in: linux-bluetooth, linux-can, lkml

From: Ignat Korchagin <redacted>
Date: Mon, 14 Oct 2024 16:38:03 +0100
On error can_create() frees the allocated sk object, but sock_init_data()
has already attached it to the provided sock object. This will leave a
dangling sk pointer in the sock object and may cause use-after-free later.

Signed-off-by: Ignat Korchagin <redacted>
Reviewed-by: Vincent Mailhol <redacted>
Reviewed-by: Kuniyuki Iwashima <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help