RDMA/core: Check for the presence of LS_NLA_TYPE_DGID correctly
In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Check for the presence of LS_NLA_TYPE_DGID correctly The netlink response for RDMA_NL_LS_OP_IP_RESOLVE should always have a LS_NLA_TYPE_DGID attribute, it is invalid if it does not. Use the nl parsing logic properly and call nla_parse_deprecated() to fill the nlattrs array and then directly index that array to get the data for the DGID. Just fail if it is NULL. Remove the for loop searching for the nla, and squash the validation and parsing into one function. Fixes an uninitialized read from the stack triggered by userspace if it does not provide the DGID to a kernel initiated RDMA_NL_LS_OP_IP_RESOLVE query. BUG: KMSAN: uninit-value in hex_byte_pack include/linux/hex.h:13 [inline] BUG: KMSAN: uninit-value in ip6_string+0xef4/0x13a0 lib/vsprintf.c:1490 hex_byte_pack include/linux/hex.h:13 [inline] ip6_string+0xef4/0x13a0 lib/vsprintf.c:1490 ip6_addr_string+0x18a/0x3e0 lib/vsprintf.c:1509 ip_addr_string+0x245/0xee0 lib/vsprintf.c:1633 pointer+0xc09/0x1bd0 lib/vsprintf.c:2542 vsnprintf+0xf8a/0x1bd0 lib/vsprintf.c:2930 vprintk_store+0x3ae/0x1530 kernel/printk/printk.c:2279 vprintk_emit+0x307/0xcd0 kernel/printk/printk.c:2426 vprintk_default+0x3f/0x50 kernel/printk/printk.c:2465 vprintk+0x36/0x50 kernel/printk/printk_safe.c:82 _printk+0x17e/0x1b0 kernel/printk/printk.c:2475 ib_nl_process_good_ip_rsep drivers/infiniband/core/addr.c:128 [inline] ib_nl_handle_ip_res_resp+0x963/0x9d0 drivers/infiniband/core
CVE-2025-71096
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-71096
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "376f46c8983458ead26cac83aa897a0b78491831",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "bfe10318fc23e0b3f1d0a18dad387d29473a624d",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "45532638de5da24c201aa2a9b3dd4b054064de7b",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "9d85524789c2f17c0e87de8d596bcccc3683a1fc",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "acadd4097d25d6bd472bcb3f9f3eba2b5105d1ec",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "0b948afc1ded88b3562c893114387f34389eeb94",
"versionType": "git"
},
{
"status": "affected",
"version": "ae43f8286730d1f2d241c34601df59f6d2286ac4",
"lessThan": "a7b8e876e0ef0232b8076972c57ce9a7286b47ca",
"versionType": "git"
}
],
"programFiles": [
"drivers/infiniband/core/addr.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.7"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.7",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.248",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.198",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.160",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.120",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.64",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.4",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "6.19",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/infiniband/core/addr.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-71096
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #39149 · Revision 1
- Added to Heist Feed
- Publisher date