[PATCH] afs: Fix potential null pointer dereference in afs_put_server

David Howells dhowells at redhat.com
Wed Sep 24 06:54:04 PDT 2025


Hi Christian,

Zhen Ni <zhen.ni at easystack.cn> wrote:

> afs_put_server() accessed server->debug_id before the NULL check, which
> could lead to a null pointer dereference. Move the debug_id assignment,
> ensuring we never dereference a NULL server pointer.
> 
> Fixes: 2757a4dc1849 ("afs: Fix access after dec in put functions")
> Cc: stable at vger.kernel.org
> Signed-off-by: Zhen Ni <zhen.ni at easystack.cn>

Can you pick this patch up and add:

Acked-by: David Howells <dhowells at redhat.com>

Thanks,
David




More information about the linux-afs mailing list