From: syzbot <syzbot+df52f4216bf7b4d768e7@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: Testing for netrom: fix KASAN slab-use-after-free in nr_dec_obs()
Date: Sun, 18 Jan 2026 05:23:03 -0800 [thread overview]
Message-ID: <696cdeb7.050a0220.3390f1.001d.GAE@google.com> (raw)
In-Reply-To: <69694da9.050a0220.58bed.002a.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Testing for netrom: fix KASAN slab-use-after-free in nr_dec_obs()
Author: activprithvi@gmail.com
#syz test upstream be548645527a131a097fdc884b7fca40c8b86231
Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
---
net/netrom/nr_route.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c
index b94cb2ffbaf8..f84227acbf68 100644
--- a/net/netrom/nr_route.c
+++ b/net/netrom/nr_route.c
@@ -466,10 +466,12 @@ static int nr_dec_obs(void)
nr_neigh = s->routes[i].neighbour;
nr_neigh->count--;
- nr_neigh_put(nr_neigh);
if (nr_neigh->count == 0 && !nr_neigh->locked)
nr_remove_neigh(nr_neigh);
+ else
+ nr_neigh_put(nr_neigh);
+
s->count--;
base-commit: be548645527a131a097fdc884b7fca40c8b86231
--
2.34.1
prev parent reply other threads:[~2026-01-18 13:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 20:27 [syzbot] [hams?] KASAN: slab-use-after-free Read in nr_rt_ioctl syzbot
2026-01-17 6:53 ` Testing for netrom: fix KASAN slab-use-after-free in nr_dec_obs() Prithvi Tambewagh
2026-01-17 9:52 ` [syzbot] [hams?] KASAN: slab-use-after-free Read in nr_rt_ioctl syzbot
2026-01-17 17:47 ` Testing for netrom: fix KASAN slab-use-after-free in nr_dec_obs() Jakub Kicinski
2026-01-18 13:21 ` Prithvi
2026-01-18 13:23 ` syzbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=696cdeb7.050a0220.3390f1.001d.GAE@google.com \
--to=syzbot+df52f4216bf7b4d768e7@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox