Skip to contentSkip to conversation

rose/ax25: use-after-free in rose_transmit_restart_request()

BUG [email protected] 1 participant 1 message May 13

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

I am reporting a use-after-free in ROSE/AX.25 networking subsystem.

Bug:
In rose_transmit_restart_request() (net/rose/rose_link.c), ax25_send_frame() accesses a rose_neigh object after it may be freed by rose_neigh_put() in rose_t0timer_expiry().

Root cause:
Missing reference hold across timer vs transmit race.

Fix:
rose_neigh_hold(neigh);
ax25_send_frame(...);
rose_neigh_put(neigh);

Syzbot report:
https://syzkaller.appspot.com/bug?extid=9c8999af06ca7df15fc6

Best regards,
Afi0