🛡️ UBUNTU-CVE-2022-48687
⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: fix out-of-bounds read when setting HMAC data. The SRv6 layer allows defining HMAC data that can later be used to sign IPv6 Segment Routing Headers. This configuration is realised via netlink through four attributes: SEG6_ATTR_HMACKEYID, SEG6_ATTR_SECRET, SEG6_ATTR_SECRETLEN and SEG6_ATTR_ALGID. Because the SECRETLEN attribute is decoupled from the actual length of the SECRET attribute, it is possible to provide invalid combinations (e.g., secret = "", secretlen = 64). This case is not checked in the code and with an appropriately crafted netlink message, an out-of-bounds read of up to 64 bytes (max secret length) can occur past the skb end pointer and into skb_shared_info: Breakpoint 1, seg6_genl_sethmac (skb=, info=) at net/ipv6/seg6.c:208 208 memcpy(hinfo->secret, secret, slen); (gdb) bt #0 seg6_genl_sethmac (skb=, info=) at net/ipv6/seg6.c:208 #1 0xffffffff81e012e9 in genl_family_rcv_msg_doit (skb=skb@entry=0xffff88800b1f9f00, nlh=nlh@entry=0xffff88800b1b7600, extack=extack@entry=0xffffc90000ba7af0, ops=ops@entry=0xffffc90000ba7a80, hdrlen=4, net=0xffffffff84237580 , family=, family=) at net/netlink/genetlink.c:731 #2 0xffffffff81e01435 in genl_family_rcv_msg (extack=0xffffc90000ba7af0, nlh=0xffff88800b1b7600, skb=0xffff88800b1f9f00, family=0xffffffff82fef6c0 ) at net/netlink/genetlink.c:775 #3 genl_rcv_msg (skb=0xffff88800b1f9f00, nlh=0xffff88800b1b7600, extack=0xffffc90000ba7af0) at net/netlink/genetlink.c:792 #4 0xffffffff81dfffc3 in netlink_rcv_skb (skb=skb@entry=0xffff88800b1f9f00, cb=cb@entry=0xffffffff81e01350 ) at net/netlink/af_netlink.c:2501 #5 0xffffffff81e00919 in genl_rcv (skb=0xffff88800b1f9f00) at net/netlink/genetlink.c:803 #6 0xffffffff81dff6ae in netlink_unicast_kernel (ssk=0xffff888010eec800, skb=0xffff88800b1f9f00, sk=0xffff888004aed000) at net/netlink/af_netlink.c:1319 #7 netlink_unicast (ssk=ssk@entry=0xffff888010eec800, skb=skb@entry=0xffff88800b1f9f00, portid=portid@entry=0, nonblock=) at net/netlink/af_netlink.c:1345 #8 0xffffffff81dff9a4 in netlink_sendmsg (sock=, msg=0xffffc90000ba7e48, len=) at net/netlink/af_netlink.c:1921 ... (gdb) p/x ((struct sk_buff *)0xffff88800b1f9f00)->head + ((struct sk_buff *)0xffff88800b1f9f00)->end $1 = 0xffff88800b1b76c0 (gdb) p/x secret $2 = 0xffff88800b1b76c0 (gdb) p slen $3 = 64 '@' The OOB data can then be read back from userspace by dumping HMAC state. This commit fixes this by ensuring SECRETLEN cannot exceed the actual length of SECRET.

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2024-05-03
Updated 2026-06-15
Modified 2026-06-03
Fix URL N/A

Affected Packages

Software From version Fixed in
linux 5.15.0-57.63
linux-allwinner-5.19
linux-aws 5.15.0-1027.31
linux-aws-5.0
linux-aws-5.11
linux-aws-5.13
linux-aws-5.15 5.15.0-1027.31~20.04.1
linux-aws-5.19
linux-aws-5.3
linux-aws-5.4 5.4.0-1093.102~18.04.2
linux-aws-5.8
linux-aws-6.2
linux-aws-fips
linux-aws-hwe 4.15.0-1147.159~16.04.1
linux-azure 5.15.0-1030.37
linux-azure-4.15 4.15.0-1158.173
linux-azure-5.11
linux-azure-5.13
linux-azure-5.15 5.15.0-1030.37~20.04.1
linux-azure-5.19
linux-azure-5.3
linux-azure-5.4 5.4.0-1100.106~18.04.1
linux-azure-5.8
linux-azure-6.2
linux-azure-edge
linux-azure-fde 5.15.0-1030.37.1
linux-azure-fde-5.19
linux-azure-fde-6.2
linux-azure-fips
linux-bluefield
linux-fips
linux-gcp 5.15.0-1026.33
linux-gcp-4.15 4.15.0-1142.158
linux-gcp-5.11
linux-gcp-5.13
linux-gcp-5.15 5.15.0-1027.34~20.04.1
linux-gcp-5.19
linux-gcp-5.3
linux-gcp-5.4 5.4.0-1097.106~18.04.1
linux-gcp-5.8
linux-gcp-6.2
linux-gcp-fips
linux-gke 5.15.0-1024.29
linux-gke-4.15
linux-gke-5.15
linux-gke-5.4
linux-gkeop 5.15.0-1012.16
linux-gkeop-5.15 5.15.0-1012.16~20.04.1
linux-gkeop-5.4
linux-hwe
linux-hwe-5.11
linux-hwe-5.13
linux-hwe-5.15 5.15.0-57.63~20.04.1
linux-hwe-5.19
linux-hwe-5.4 5.4.0-136.153~18.04.1
linux-hwe-5.8
linux-hwe-6.2
linux-hwe-edge
linux-ibm 5.15.0-1022.25
linux-ibm-5.4 5.4.0-1041.46~18.04.1
linux-intel-5.13
linux-intel-iot-realtime
linux-intel-iotg 5.15.0-1023.28
linux-intel-iotg-5.15 5.15.0-1023.28~20.04.1
linux-iot 5.4.0-1010.12
linux-kvm 5.15.0-1025.30
linux-lowlatency 5.15.0-57.63
linux-lowlatency-hwe-5.15 5.15.0-58.64~20.04.1
linux-lowlatency-hwe-5.19
linux-lowlatency-hwe-6.2
linux-nvidia 5.15.0-1015.15
linux-nvidia-6.2
linux-oem
linux-oem-5.10
linux-oem-5.13
linux-oem-5.14
linux-oem-5.17
linux-oem-5.6
linux-oem-6.0
linux-oem-6.1
linux-oracle 5.15.0-1026.32
linux-oracle-5.0
linux-oracle-5.11
linux-oracle-5.13
linux-oracle-5.15 5.15.0-1027.33~20.04.1
linux-oracle-5.3
linux-oracle-5.4 5.4.0-1091.100~18.04.1
linux-oracle-5.8
linux-raspi 5.15.0-1022.24
linux-raspi-5.4 5.4.0-1078.89~18.04.1
linux-raspi-realtime
linux-raspi2
linux-realtime 5.15.0-1029.32
linux-riscv
linux-riscv-5.11
linux-riscv-5.15 5.15.0-1027.31~20.04.1
linux-riscv-5.19
linux-riscv-5.8
linux-starfive-5.19
linux-starfive-6.2

Similar Threats

Site Security Check

Concerned your site may already be targeted?

BotEraser analyzes incoming traffic patterns and helps identify bot behavior consistent with known exploit attempts.

Check My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.