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:
[<ffffffff81a27201>] kvmalloc_node+0x61/0xf0
[<ffffffff8706e7e8>] alloc_netdev_mqs+0x98/0xe80
[<ffffffff84e64192>] mkiss_open+0xb2/0x6f0 [1]
[<ffffffff842355db>] tty_ldisc_open+0x9b/0x110
[<ffffffff84236488>] tty_set_ldisc+0x2e8/0x670
[<ffffffff8421f7f3>] tty_ioctl+0xda3/0x1440
[<ffffffff81c9f273>] __x64_sys_ioctl+0x193/0x200
[<ffffffff8911263a>] do_syscall_64+0x3a/0xb0
[<ffffffff89200068>] entry_SYSCALL_64_after_hwframe+0x44/0xae
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:
[<ffffffff8709f68b>] __hw_addr_create_ex+0x5b/0x310
[<ffffffff8709fb38>] __hw_addr_add_ex+0x1f8/0x2b0
[<ffffffff870a0c7b>] dev_addr_init+0x10b/0x1f0
[<ffffffff8706e88b>] alloc_netdev_mqs+0x13b/0xe80
[<ffffffff84e64192>] mkiss_open+0xb2/0x6f0 [1]
[<ffffffff842355db>] tty_ldisc_open+0x9b/0x110
[<ffffffff84236488>] tty_set_ldisc+0x2e8/0x670
[<ffffffff8421f7f3>] tty_ioctl+0xda3/0x1440
[<ffffffff81c9f273>] __x64_sys_ioctl+0x193/0x200
[<ffffffff8911263a>] do_syscall_64+0x3a/0xb0
[<ffffffff89200068>] entry_SYSCALL_64_after_hwframe+0x44/0xae
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:
[<ffffffff81a27201>] kvmalloc_node+0x61/0xf0
[<ffffffff8706eec7>] alloc_netdev_mqs+0x777/0xe80
[<ffffffff84e64192>] mkiss_open+0xb2/0x6f0 [1]
[<ffffffff842355db>] tty_ldisc_open+0x9b/0x110
[<ffffffff84236488>] tty_set_ldisc+0x2e8/0x670
[<ffffffff8421f7f3>] tty_ioctl+0xda3/0x1440
[<ffffffff81c9f273>] __x64_sys_ioctl+0x193/0x200
[<ffffffff8911263a>] do_syscall_64+0x3a/0xb0
[<ffffffff89200068>] entry_SYSCALL_64_after_hwframe+0x44/0xae
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:
[<ffffffff81a27201>] kvmalloc_node+0x61/0xf0
[<ffffffff8706f062>] alloc_netdev_mqs+0x912/0xe80
[<ffffffff84e64192>] mkiss_open+0xb2/0x6f0 [1]
[<ffffffff842355db>] tty_ldisc_open+0x9b/0x110
[<ffffffff84236488>] tty_set_ldisc+0x2e8/0x670
[<ffffffff8421f7f3>] tty_ioctl+0xda3/0x1440
[<ffffffff81c9f273>] __x64_sys_ioctl+0x193/0x200
[<ffffffff8911263a>] do_syscall_64+0x3a/0xb0
[<ffffffff89200068>] entry_SYSCALL_64_after_hwframe+0x44/0xae
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 2.6.14 | 4.4.274 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.10.46-1 | — |
| Debian 13 | linux | 5.10.46-1 | — |
| Debian 12 | linux | 5.10.46-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +22 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-81.91 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1055.58 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1056.58 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1019.22 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1051.55 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1022.23 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1045.47 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1053.57 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1042.46 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-156.163 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1111.118 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1055.58~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1123.136 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1056.58~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1108.122 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1051.55~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-81.91~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1099.101 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1080.88 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1053.57~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1042.46~18.04.3 | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1069.73+fips2 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1073.76+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1032.37 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1067.71~20.04.1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2053.55 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2035.39 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1069.78 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2018.20 | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | 4.4.0-1088.95 | — |
| Ubuntu Pro 16.04 LTS | linux | 4.4.0-239.273 | — |
| Ubuntu Pro 16.04 LTS | linux-aws | 4.4.0-1155.170 | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1111.118~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1123.136~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1108.122~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-156.163~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-kvm | 4.4.0-1118.128 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1080.88~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux-aws | 4.4.0-1117.123 | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1123.136~14.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux-lts-xenial | 4.4.0-239.273~14.04.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | kernel-64kb +7 | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SLES 12 SP5 | kernel-azure +2 | 4.12.14-16.188.1 | SUSE-SU-2024:1979-1 |
| SLES 12 SP5 | kernel-docs +4 | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SLES for SAP 15 SP3 | kernel-docs +5 | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLES for SAP 12 SP5 | kernel-azure +2 | 4.12.14-16.188.1 | SUSE-SU-2024:1979-1 |
| SLES for SAP 12 SP5 | kernel-syms +2 | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SLE Real Time 12 SP5 | kernel-rt +3 | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.172.1 | SUSE-SU-2024:2010-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SLE Micro 5.1 | kernel-rt +1 | 5.3.18-150300.172.1 | SUSE-SU-2024:2010-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_45 | 1-150300.7.3.1 | SUSE-SU-2024:2185-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_57 | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SLE HPC 15 SP3 | kernel-64kb +6 | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +6 | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
Advisories 5
- SUSE-SU-2024:1979-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1983-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2010-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2184-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2185-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
References
- 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