Thread (2 messages) 2 messages, 2 authors, 2026-01-21

Re: [PATCH] netrom: fix double-free in nr_route_frame()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-21 03:30:08
Also in: linux-hams, lkml, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 19 Jan 2026 15:33:59 +0900 you wrote:
In nr_route_frame(), old_skb is immediately freed without checking if
nr_neigh->ax25 pointer is NULL. Therefore, if nr_neigh->ax25 is NULL,
the caller function will free old_skb again, causing a double-free bug.

Therefore, to prevent this, we need to modify it to check whether
nr_neigh->ax25 is NULL before freeing old_skb.

[...]
Here is the summary with links:
  - netrom: fix double-free in nr_route_frame()
    https://git.kernel.org/netdev/net/c/ba1096c31528

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help