CVE-2021-47668 (GCVE-0-2021-47668)
Vulnerability from cvelistv5
Published
2025-04-17 18:01
Modified
2025-05-04 07:15
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
can: dev: can_restart: fix use after free bug
After calling netif_rx_ni(skb), dereferencing skb is unsafe.
Especially, the can_frame cf which aliases skb memory is accessed
after the netif_rx_ni() in:
stats->rx_bytes += cf->len;
Reordering the lines solves the issue.
References
Impacted products
Vendor | Product | Version | |||||||
---|---|---|---|---|---|---|---|---|---|
▼ | Linux | Linux |
Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 Version: 39549eef3587f1c1e8c65c88a2400d10fd30ea17 |
||||||
|
{ "containers": { "adp": [ { "metrics": [ { "cvssV3_1": { "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" } }, { "other": { "content": { "id": "CVE-2021-47668", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "timestamp": "2025-04-17T18:17:56.944235Z", "version": "2.0.3" }, "type": "ssvc" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-416", "description": "CWE-416 Use After Free", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2025-04-17T18:25:25.427Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "defaultStatus": "unaffected", "product": "Linux", "programFiles": [ "drivers/net/can/dev.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "lessThan": "260925a0b7d2da5449f8ecfd02c1405e0c8a45b8", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "bbc6847b9b8978b520f62fbc7c68c54ef0f8d282", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "92668d28c7e6a7a2ba07df287669ffcdf650c421", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "08ab951787098ae0b6c0364aeea7a8138226f234", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "ac48ef15826e83f4206c47add61072e8fc76d328", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "593c072b7b3c4d7044416eb039d9ad706bedd67a", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" }, { "lessThan": "03f16c5075b22c8902d2af739969e878b0879c94", "status": "affected", "version": "39549eef3587f1c1e8c65c88a2400d10fd30ea17", "versionType": "git" } ] }, { "defaultStatus": "affected", "product": "Linux", "programFiles": [ "drivers/net/can/dev.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "status": "affected", "version": "2.6.31" }, { "lessThan": "2.6.31", "status": "unaffected", "version": "0", "versionType": "semver" }, { "lessThanOrEqual": "4.4.*", "status": "unaffected", "version": "4.4.254", "versionType": "semver" }, { "lessThanOrEqual": "4.9.*", "status": "unaffected", "version": "4.9.254", "versionType": "semver" }, { "lessThanOrEqual": "4.14.*", "status": "unaffected", "version": "4.14.218", "versionType": "semver" }, { "lessThanOrEqual": "4.19.*", "status": "unaffected", "version": "4.19.171", "versionType": "semver" }, { "lessThanOrEqual": "5.4.*", "status": "unaffected", "version": "5.4.93", "versionType": "semver" }, { "lessThanOrEqual": "5.10.*", "status": "unaffected", "version": "5.10.11", "versionType": "semver" }, { "lessThanOrEqual": "*", "status": "unaffected", "version": "5.11", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.4.254", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.9.254", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.14.218", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.19.171", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.4.93", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.10.11", "versionStartIncluding": "2.6.31", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.11", "versionStartIncluding": "2.6.31", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: dev: can_restart: fix use after free bug\n\nAfter calling netif_rx_ni(skb), dereferencing skb is unsafe.\nEspecially, the can_frame cf which aliases skb memory is accessed\nafter the netif_rx_ni() in:\n stats-\u003erx_bytes += cf-\u003elen;\n\nReordering the lines solves the issue." } ], "providerMetadata": { "dateUpdated": "2025-05-04T07:15:48.822Z", "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux" }, "references": [ { "url": "https://git.kernel.org/stable/c/260925a0b7d2da5449f8ecfd02c1405e0c8a45b8" }, { "url": "https://git.kernel.org/stable/c/bbc6847b9b8978b520f62fbc7c68c54ef0f8d282" }, { "url": "https://git.kernel.org/stable/c/92668d28c7e6a7a2ba07df287669ffcdf650c421" }, { "url": "https://git.kernel.org/stable/c/08ab951787098ae0b6c0364aeea7a8138226f234" }, { "url": "https://git.kernel.org/stable/c/ac48ef15826e83f4206c47add61072e8fc76d328" }, { "url": "https://git.kernel.org/stable/c/593c072b7b3c4d7044416eb039d9ad706bedd67a" }, { "url": "https://git.kernel.org/stable/c/03f16c5075b22c8902d2af739969e878b0879c94" } ], "title": "can: dev: can_restart: fix use after free bug", "x_generator": { "engine": "bippy-1.2.0" } } }, "cveMetadata": { "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "assignerShortName": "Linux", "cveId": "CVE-2021-47668", "datePublished": "2025-04-17T18:01:29.315Z", "dateReserved": "2025-04-16T07:16:05.752Z", "dateUpdated": "2025-05-04T07:15:48.822Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2021-47668\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-04-17T18:15:43.623\",\"lastModified\":\"2025-04-21T18:41:27.987\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: dev: can_restart: fix use after free bug\\n\\nAfter calling netif_rx_ni(skb), dereferencing skb is unsafe.\\nEspecially, the can_frame cf which aliases skb memory is accessed\\nafter the netif_rx_ni() in:\\n stats-\u003erx_bytes += cf-\u003elen;\\n\\nReordering the lines solves the issue.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: dev: can_restart: fix use after free bug. Tras llamar a netif_rx_ni(skb), desreferenciar skb no es seguro. En particular, se accede al cf can_frame, que crea un alias de memoria skb, despu\u00e9s de netif_rx_ni() en: stats-\u0026gt;rx_bytes += cf-\u0026gt;len;. Reordenar las l\u00edneas soluciona el problema.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"2.6.31\",\"versionEndExcluding\":\"4.4.254\",\"matchCriteriaId\":\"B3F43128-3AF7-45BD-8292-35295A09235B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.5\",\"versionEndExcluding\":\"4.9.254\",\"matchCriteriaId\":\"828B5BA1-E6D5-4D92-A2FD-7186908DE07C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.10\",\"versionEndExcluding\":\"4.14.218\",\"matchCriteriaId\":\"31F3AA41-450C-45A7-A1D3-FB2D8C212890\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.15\",\"versionEndExcluding\":\"4.19.171\",\"matchCriteriaId\":\"E048F4A6-F5E6-41BF-BCD6-49274CA46915\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.20\",\"versionEndExcluding\":\"5.4.93\",\"matchCriteriaId\":\"3F19E9ED-75CE-4576-98F5-2746C9189696\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.11\",\"matchCriteriaId\":\"B62A8CB5-77B4-40A9-8B60-AF691EC1FB99\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.11:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"18B1C9CE-F7E4-426B-A770-79F86AB5CC38\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.11:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"7A70E596-2EF7-4651-B2EF-2CEE31DB6893\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.11:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"18C82C96-2853-4DFE-93AD-F6E59B4129CA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.11:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"A330B043-47EA-4D06-82BF-153A1735FC11\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/03f16c5075b22c8902d2af739969e878b0879c94\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/08ab951787098ae0b6c0364aeea7a8138226f234\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/260925a0b7d2da5449f8ecfd02c1405e0c8a45b8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/593c072b7b3c4d7044416eb039d9ad706bedd67a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/92668d28c7e6a7a2ba07df287669ffcdf650c421\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ac48ef15826e83f4206c47add61072e8fc76d328\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bbc6847b9b8978b520f62fbc7c68c54ef0f8d282\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}", "vulnrichment": { "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47668\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-04-17T18:17:56.944235Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-04-17T18:17:58.458Z\"}}], \"cna\": {\"title\": \"can: dev: can_restart: fix use after free bug\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"260925a0b7d2da5449f8ecfd02c1405e0c8a45b8\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"bbc6847b9b8978b520f62fbc7c68c54ef0f8d282\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"92668d28c7e6a7a2ba07df287669ffcdf650c421\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"08ab951787098ae0b6c0364aeea7a8138226f234\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"ac48ef15826e83f4206c47add61072e8fc76d328\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"593c072b7b3c4d7044416eb039d9ad706bedd67a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"39549eef3587f1c1e8c65c88a2400d10fd30ea17\", \"lessThan\": \"03f16c5075b22c8902d2af739969e878b0879c94\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/can/dev.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.31\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.31\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.4.254\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.4.*\"}, {\"status\": \"unaffected\", \"version\": \"4.9.254\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.218\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.171\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.93\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/can/dev.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/260925a0b7d2da5449f8ecfd02c1405e0c8a45b8\"}, {\"url\": \"https://git.kernel.org/stable/c/bbc6847b9b8978b520f62fbc7c68c54ef0f8d282\"}, {\"url\": \"https://git.kernel.org/stable/c/92668d28c7e6a7a2ba07df287669ffcdf650c421\"}, {\"url\": \"https://git.kernel.org/stable/c/08ab951787098ae0b6c0364aeea7a8138226f234\"}, {\"url\": \"https://git.kernel.org/stable/c/ac48ef15826e83f4206c47add61072e8fc76d328\"}, {\"url\": \"https://git.kernel.org/stable/c/593c072b7b3c4d7044416eb039d9ad706bedd67a\"}, {\"url\": \"https://git.kernel.org/stable/c/03f16c5075b22c8902d2af739969e878b0879c94\"}], \"x_generator\": {\"engine\": \"bippy-1.0.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: dev: can_restart: fix use after free bug\\n\\nAfter calling netif_rx_ni(skb), dereferencing skb is unsafe.\\nEspecially, the can_frame cf which aliases skb memory is accessed\\nafter the netif_rx_ni() in:\\n stats-\u003erx_bytes += cf-\u003elen;\\n\\nReordering the lines solves the issue.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-04-17T18:01:29.315Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2021-47668\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-04-17T18:25:25.427Z\", \"dateReserved\": \"2025-04-16T07:16:05.752Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-04-17T18:01:29.315Z\", \"assignerShortName\": \"Linux\"}", "dataType": "CVE_RECORD", "dataVersion": "5.1" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…