CVE-2021-47237 Information
Description
In the Linux kernel the following vulnerability has been resolved:
net: hamradio: fix memory leak in mkiss_close
My local syzbot instance hit memory leak in mkiss_open()[1]. The problem was in missing free_netdev() in mkiss_close().
In mkiss_open() netdevice is allocated and then registered but in mkiss_close() netdevice was only unregistered but not freed.
Fail log:
BUG: memory leak
unreferenced object 0xffff8880281ba000 (size 4096):
comm \syz-executor.1\ pid 11443 jiffies 4295046091 (age 17.660s)
hex dump (first 32 bytes):
61 78 30 00 00 00 00 00 00 00 00 00 00 00 00 00 ax0………….
00 27 fa 2a 80 88 ff ff 00 00 00 00 00 00 00 00 .’………….
backtrace:
[
BUG: memory leak
unreferenced object 0xffff8880141a9a00 (size 96):
comm \syz-executor.1\ pid 11443 jiffies 4295046091 (age 17.660s)
hex dump (first 32 bytes):
e8 a2 1b 28 80 88 ff ff e8 a2 1b 28 80 88 ff ff …(…….(….
98 92 9c aa b0 40 02 00 00 00 00 00 00 00 00 00 …..@……….
backtrace:
[
BUG: memory leak
unreferenced object 0xffff8880219bfc00 (size 512):
comm \syz-executor.1\ pid 11443 jiffies 4295046091 (age 17.660s)
hex dump (first 32 bytes):
00 a0 1b 28 80 88 ff ff 80 8f b1 8d ff ff ff ff …(…………
80 8f b1 8d ff ff ff ff 00 00 00 00 00 00 00 00 …………….
backtrace:
[
BUG: memory leak
unreferenced object 0xffff888029b2b200 (size 256):
comm \syz-executor.1\ pid 11443 jiffies 4295046091 (age 17.660s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
backtrace:
[
Reference
https://git.kernel.org/stable/c/c634ba0b4159838ff45a60d3a0ace3b4118077a5 https://git.kernel.org/stable/c/3942d0f9ace1a95a74930b5b4fc0e5005c62b37b https://git.kernel.org/stable/c/765a8a04f828db7222b36a42b1031f576bfe95c3 https://git.kernel.org/stable/c/c16c4716a1b5ba4f83c7e00da457cba06761f119 https://git.kernel.org/stable/c/a49cbb762ef20655f5c91abdc13658b0af5e159d https://git.kernel.org/stable/c/290b0b6432e2599021db0b8d6046f756d931c29f https://git.kernel.org/stable/c/f4de2b43d13b7cf3ced9310e371b90c836dbd7cd https://git.kernel.org/stable/c/7edcc682301492380fbdd604b4516af5ae667a13
Share on: