ipv6: addrlabel: fix infoleak when sending struct ifaddrlblmsg to network
Published May 1, 2025
7.1
HIGHCVSS 3.1
EPSS 0.22%
Description
When copying a `struct ifaddrlblmsg` to the network, __ifal_reserved remained uninitialized, resulting in a 1-byte infoleak:
BUG: KMSAN: kernel-network-infoleak in __netdev_start_xmit ./include/linux/netdevice.h:4841 __netdev_start_xmit ./include/linux/netdevice.h:4841 netdev_start_xmit ./include/linux/netdevice.h:4857 xmit_one net/core/dev.c:3590 dev_hard_start_xmit+0x1dc/0x800 net/core/dev.c:3606 __dev_queue_xmit+0x17e8/0x4350 net/core/dev.c:4256 dev_queue_xmit ./include/linux/netdevice.h:3009 __netlink_deliver_tap_skb net/netlink/af_netlink.c:307 __netlink_deliver_tap+0x728/0xad0 net/netlink/af_netlink.c:325 netlink_deliver_tap net/netlink/af_netlink.c:338 __netlink_sendskb net/netlink/af_netlink.c:1263 netlink_sendskb+0x1d9/0x200 net/netlink/af_netlink.c:1272 netlink_unicast+0x56d/0xf50 net/netlink/af_netlink.c:1360 nlmsg_unicast ./include/net/netlink.h:1061 rtnl_unicast+0x5a/0x80 net/core/rtnetlink.c:758 ip6addrlbl_get+0xfad/0x10f0 net/ipv6/addrlabel.c:628 rtnetlink_rcv_msg+0xb33/0x1570 net/core/rtnetlink.c:6082 ... Uninit was created at: slab_post_alloc_hook+0x118/0xb00 mm/slab.h:742 slab_alloc_node mm/slub.c:3398 __kmem_cache_alloc_node+0x4f2/0x930 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:954 __kmalloc_node_track_caller+0x117/0x3d0 mm/slab_common.c:975 kmalloc_reserve net/core/skbuff.c:437 __alloc_skb+0x27a/0xab0 net/core/skbuff.c:509 alloc_skb ./include/linux/skbuff.h:1267 nlmsg_new ./include/net/netlink.h:964 ip6addrlbl_get+0x490/0x10f0 net/ipv6/addrlabel.c:608 rtnetlink_rcv_msg+0xb33/0x1570 net/core/rtnetlink.c:6082 netlink_rcv_skb+0x299/0x550 net/netlink/af_netlink.c:2540 rtnetlink_rcv+0x26/0x30 net/core/rtnetlink.c:6109 netlink_unicast_kernel net/netlink/af_netlink.c:1319 netlink_unicast+0x9ab/0xf50 net/netlink/af_netlink.c:1345 netlink_sendmsg+0xebc/0x10f0 net/netlink/af_netlink.c:1921 ...
This patch ensures that the reserved field is always initialized.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 2.6.25StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<2.6.25
- Version 4.14.300StatusunaffectedConstraints<=4.14.*
- Version 4.19.267StatusunaffectedConstraints<=4.19.*
- Version 4.9.334StatusunaffectedConstraints<=4.9.*
- Version 5.10.155StatusunaffectedConstraints<=5.10.*
- Version 5.15.79StatusunaffectedConstraints<=5.15.*
- Version 5.4.225StatusunaffectedConstraints<=5.4.*
- Version 6.0.9StatusunaffectedConstraints<=6.0.*
- Version 6.1StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 2.6.25 · < 4.9.334
- ≥ 4.10 · < 4.14.300
- ≥ 4.15 · < 4.19.267
- ≥ 4.20 · < 5.4.225
- ≥ 5.5 · < 5.10.155
- ≥ 5.11 · < 5.15.79
- ≥ 5.16 · < 6.0.9
- 6.1
- 6.1
- 6.1
- 6.1
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Out of support scope
Red Hat Enterprise Linux 8
kernel-rt
Out of support scope
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This patch addresses an information leak in the IPv6 address labeling subsystem (net/ipv6/addrlabel.c). When copying a struct ifaddrlblmsg into a netlink message, the __ifal_reserved field was left uninitialized, potentially leaking 1 byte of stack memory to userspace. This issue was reported by KMSAN and confirmed via syzkaller. It affects confidentiality and can be triggered by an unprivileged local user via rtnetlink sockets.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2025–2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.22% (0.00223) | 11.76th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.18% (0.00183) | 8.01th | v5 (v2026.06.15) |
| May 2, 2025 | 0.02% (0.00024) | 5.15th | v4 (v2025.03.14) |
References (13)
- https://access.redhat.com/security/cve/CVE-2022-49865 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2363434 Issue Tracking
- https://git.kernel.org/stable/c/0f85b7ae7c4b5d7b4bbf7ac653a733c181a8a2bf Patch
- https://git.kernel.org/stable/c/2acb2779b147decd300c117683d5a32ce61c75d6 Patch
- https://git.kernel.org/stable/c/49e92ba5ecd7d72ba369dde2ccff738edd028a47 Patch
- https://git.kernel.org/stable/c/568a47ff756f913e8b374c2af9d22cd2c772c744 Patch
- https://git.kernel.org/stable/c/58cd7fdc8c1e6c7873acc08f190069fed88d1c12 Patch
- https://git.kernel.org/stable/c/6d26d0587abccb9835382a0b53faa7b9b1cd83e3 Patch
- https://git.kernel.org/stable/c/a033b86c7f7621fde31f0364af8986f43b44914f Patch
- https://git.kernel.org/stable/c/c23fb2c82267638f9d206cb96bb93e1f93ad7828 Patch
- https://lore.kernel.org/linux-cve-announce/2025050149-CVE-2022-49865-cd5b@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-49865
- https://www.cve.org/CVERecord?id=CVE-2022-49865
Change history (0)
No recorded changes yet.