FKIE_CVE-2026-99672
Vulnerability from fkie_nvd - Published: 2026-11-20 06:18 - Updated: 2026-11-23 08:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved:
can: protect the receive lists with a per-device lock
The receive lists of a CAN device are located in the device's
can_ml_priv and travel with the device when it is moved to another
network namespace. But they are protected by the per-netns
rcvlists_lock. So can_rx_unregister() needs dev_net(dev) to pick the
right lock and silently returns when the passed namespace does not
match dev_net(dev) anymore.
isotp_release() and bcm_release() leave their notifier list before they
take any lock that serializes against the netdev notifier, which runs
under RTNL. When the bound device is moved to another namespace in this
window, the notifier skips the socket and the release path has to remove
the filters itself. isotp_release() passes the socket's namespace, which
does not match dev_net(dev) anymore. bcm_rx_unreg() passes dev_net(dev),
which can_rx_unregister() reads again for its check, so a namespace
change between both reads makes the check fail as well. In both cases
can_rx_unregister() silently returns. As can_rx_register() stores
rcv->sk without a reference, the remaining receivers point to the freed
socket (isotp) or the freed op (bcm):
BUG: KASAN: use-after-free in isotp_rcv+0x1570/0x24d0
Read of size 1 at addr ffff888118130552 by task isotp_ns_uaf/578
can_rcv_filter+0x4af/0x8c0
can_receive+0x28d/0x3c0
can_rcv+0x2a9/0x310
__netif_receive_skb_one_core+0x21a/0x260
process_backlog+0x210/0x760
Besides this, the lists of a device are protected by the rcvlists_lock
of the namespace that is passed in. Callers which pass dev_net(dev) read
it at different times, so the same lists may be modified under the locks
of different namespaces while the device is moved.
Taking RTNL in these release paths is no option: raw_bind(),
raw_setsockopt() and raw_release() already hold RTNL while adding and
removing up to CAN_RAW_FILTER_MAX filters per socket, which unprivileged
users can trigger repeatedly and which makes RTNL a global bottleneck.
Instead fix the root cause and add a spinlock to struct
can_dev_rcv_lists, which protects the receive lists of a CAN device or
the 'any' CAN device lists of a namespace. It is initialized in
can_set_ml_priv(), which is used by all CAN network devices. With this,
can_rx_unregister() finds the subscription independently of the
current namespace of the device. The protocols keep the device valid
with their tracked references. The per-netns rcvlists_lock only protects
the receive list statistics anymore, and CAN_RAW, CAN_BCM and CAN_ISOTP
pass the namespace that has been used for can_rx_register().
So isotp_release() and bcm_release() now remove their filters correctly
without RTNL, and raw_release(), raw_setsockopt(), raw_bind() and
isotp_bind() do not need RTNL anymore and add and remove their filters
under lock_sock(). To serialize bind() with NETDEV_UNREGISTER, bind()
publishes the device inside the RCU section of its lookup, and
raw_notify() and isotp_notify() recheck the bound device under lock_sock().
As RTNL does not keep NETDEV_DOWN out of bind() anymore, bind() checks
IFF_UP after publishing the bound device, with a barrier pair against
raw_notify() and isotp_notify(), so a down transition during bind() is
still reported with ENETDOWN.
References
Impacted products
| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"include/linux/can/can-ml.h",
"include/net/netns/can.h",
"net/can/af_can.c",
"net/can/bcm.c",
"net/can/isotp.c",
"net/can/raw.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "c91b7a021f4c407198bcc0da44125e8a1649ad41",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "dbf57b99e1fc43679d3e3ba6aacb1a9858462302",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "3fcffe9ef1e900d8551a5872fee9efd8c67785f5",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "af23b302ffe575b74d1fab0fae8fe5c605f4952e",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "59d91f555ada337458c48316987b8ef46487f885",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "4b625dde57c0a40a933bf017ff93a64a7306aa43",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "228e795ec650c33ebbce8ba81ce983c84d64d889",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
},
{
"lessThan": "0f3ad9ab40e3dad06d5c0693806e07935ceedbc3",
"status": "affected",
"version": "8e8cda6d737d356054c9eeef642aec0e8ae7e6bc",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"include/linux/can/can-ml.h",
"include/net/netns/can.h",
"net/can/af_can.c",
"net/can/bcm.c",
"net/can/isotp.c",
"net/can/raw.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.12"
},
{
"lessThan": "4.12",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.275",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.226",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.118",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.64",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.5",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc2",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: protect the receive lists with a per-device lock\n\nThe receive lists of a CAN device are located in the device\u0027s\ncan_ml_priv and travel with the device when it is moved to another\nnetwork namespace. But they are protected by the per-netns\nrcvlists_lock. So can_rx_unregister() needs dev_net(dev) to pick the\nright lock and silently returns when the passed namespace does not\nmatch dev_net(dev) anymore.\n\nisotp_release() and bcm_release() leave their notifier list before they\ntake any lock that serializes against the netdev notifier, which runs\nunder RTNL. When the bound device is moved to another namespace in this\nwindow, the notifier skips the socket and the release path has to remove\nthe filters itself. isotp_release() passes the socket\u0027s namespace, which\ndoes not match dev_net(dev) anymore. bcm_rx_unreg() passes dev_net(dev),\nwhich can_rx_unregister() reads again for its check, so a namespace\nchange between both reads makes the check fail as well. In both cases\ncan_rx_unregister() silently returns. As can_rx_register() stores\nrcv-\u003esk without a reference, the remaining receivers point to the freed\nsocket (isotp) or the freed op (bcm):\n\n BUG: KASAN: use-after-free in isotp_rcv+0x1570/0x24d0\n Read of size 1 at addr ffff888118130552 by task isotp_ns_uaf/578\n can_rcv_filter+0x4af/0x8c0\n can_receive+0x28d/0x3c0\n can_rcv+0x2a9/0x310\n __netif_receive_skb_one_core+0x21a/0x260\n process_backlog+0x210/0x760\n\nBesides this, the lists of a device are protected by the rcvlists_lock\nof the namespace that is passed in. Callers which pass dev_net(dev) read\nit at different times, so the same lists may be modified under the locks\nof different namespaces while the device is moved.\n\nTaking RTNL in these release paths is no option: raw_bind(),\nraw_setsockopt() and raw_release() already hold RTNL while adding and\nremoving up to CAN_RAW_FILTER_MAX filters per socket, which unprivileged\nusers can trigger repeatedly and which makes RTNL a global bottleneck.\n\nInstead fix the root cause and add a spinlock to struct\ncan_dev_rcv_lists, which protects the receive lists of a CAN device or\nthe \u0027any\u0027 CAN device lists of a namespace. It is initialized in\ncan_set_ml_priv(), which is used by all CAN network devices. With this,\ncan_rx_unregister() finds the subscription independently of the\ncurrent namespace of the device. The protocols keep the device valid\nwith their tracked references. The per-netns rcvlists_lock only protects\nthe receive list statistics anymore, and CAN_RAW, CAN_BCM and CAN_ISOTP\npass the namespace that has been used for can_rx_register().\n\nSo isotp_release() and bcm_release() now remove their filters correctly\nwithout RTNL, and raw_release(), raw_setsockopt(), raw_bind() and\nisotp_bind() do not need RTNL anymore and add and remove their filters\nunder lock_sock(). To serialize bind() with NETDEV_UNREGISTER, bind()\npublishes the device inside the RCU section of its lookup, and\nraw_notify() and isotp_notify() recheck the bound device under lock_sock().\nAs RTNL does not keep NETDEV_DOWN out of bind() anymore, bind() checks\nIFF_UP after publishing the bound device, with a barrier pair against\nraw_notify() and isotp_notify(), so a down transition during bind() is\nstill reported with ENETDOWN."
}
],
"id": "CVE-2026-99672",
"lastModified": "2026-11-23T08:18:07.927",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-20T06:18:01.797",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/0f3ad9ab40e3dad06d5c0693806e07935ceedbc3"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/228e795ec650c33ebbce8ba81ce983c84d64d889"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/3fcffe9ef1e900d8551a5872fee9efd8c67785f5"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/4b625dde57c0a40a933bf017ff93a64a7306aa43"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/59d91f555ada337458c48316987b8ef46487f885"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/af23b302ffe575b74d1fab0fae8fe5c605f4952e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c91b7a021f4c407198bcc0da44125e8a1649ad41"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/dbf57b99e1fc43679d3e3ba6aacb1a9858462302"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…