CVE-2026-98929
Full vulnerability record from the local CVENow database.
Description
In the Linux kernel, the following vulnerability has been resolved: macsec: initialize SecY before registering the netdevice Creating a MACsec device with MAC offload over an LRO-capable lower device triggers a warning in rtmsg_ifinfo_build_skb() when IPv4 forwarding is enabled by default. register_netdevice() invokes inetdev_init(), which disables LRO and emits a NETDEV_FEAT_CHANGE notification. This reaches macsec_fill_info() before macsec_add_dev() initializes the SecY. key_len is still zero, so macsec_fill_info() returns -EMSGSIZE and trips the WARN_ON in rtmsg_ifinfo_build_skb(), even though the skb has enough space. Even without the warning, notifications during registration can report uninitialized SecY attributes, including the SCI. This ordering has existed since the driver was introduced. Initialize the SecY and apply the new-link attributes before registration. Move MAC address inheritance into macsec_newlink() so the SCI can also be initialized before registration-time notifications report it. Move the per-CPU statistics and metadata destination allocation into ndo_init(), and release partial allocations on failure.
View original CVE JSON
{
"id": "CVE-2026-98929",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2026-10-23T13:17:13.673",
"lastModified": "2026-10-23T13:17:13.673",
"vulnStatus": "Received",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmacsec: initialize SecY before registering the netdevice\n\nCreating a MACsec device with MAC offload over an LRO-capable lower\ndevice triggers a warning in rtmsg_ifinfo_build_skb() when IPv4\nforwarding is enabled by default.\n\nregister_netdevice() invokes inetdev_init(), which disables LRO and emits\na NETDEV_FEAT_CHANGE notification. This reaches macsec_fill_info() before\nmacsec_add_dev() initializes the SecY. key_len is still zero, so\nmacsec_fill_info() returns -EMSGSIZE and trips the WARN_ON in\nrtmsg_ifinfo_build_skb(), even though the skb has enough space.\n\nEven without the warning, notifications during registration can report\nuninitialized SecY attributes, including the SCI. This ordering has existed\nsince the driver was introduced.\n\nInitialize the SecY and apply the new-link attributes before registration.\nMove MAC address inheritance into macsec_newlink() so the SCI can also be\ninitialized before registration-time notifications report it. Move the\nper-CPU statistics and metadata destination allocation into ndo_init(),\nand release partial allocations on failure."
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"drivers/net/macsec.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "c09440f7dcb304002dfced8c0fea289eb25f2da0",
"lessThan": "2b42adf3b8ee9a0e1d2629aca3c5a02a1c438066",
"versionType": "git",
"status": "affected"
},
{
"version": "c09440f7dcb304002dfced8c0fea289eb25f2da0",
"lessThan": "b07bea42bf590edb0fd507ab25622a74af09548b",
"versionType": "git",
"status": "affected"
},
{
"version": "c09440f7dcb304002dfced8c0fea289eb25f2da0",
"lessThan": "c2de369c5c5b8599ca10fd5ca8d11fcd845c1331",
"versionType": "git",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"drivers/net/macsec.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "4.6",
"status": "affected"
},
{
"version": "0",
"lessThan": "4.6",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.18.55",
"lessThanOrEqual": "6.18.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "7.2.9",
"lessThanOrEqual": "7.2.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "7.3",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/2b42adf3b8ee9a0e1d2629aca3c5a02a1c438066",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/b07bea42bf590edb0fd507ab25622a74af09548b",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/c2de369c5c5b8599ca10fd5ca8d11fcd845c1331",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}