{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47232","id":"CVE-2021-47232","title":"can: j1939: fix Use-after-Free, hold skb ref while in use","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: fix Use-after-Free, hold skb ref while in use\n\nThis patch fixes a Use-after-Free found by the syzbot.\n\nThe problem is that a skb is taken from the per-session skb queue,\nwithout incrementing the ref count. This leads to a Use-after-Free if\nthe skb is taken concurrently from the session queue due to a CTS.","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: fix Use-after-Free, hold skb ref while in use\n\nThis patch fixes a Use-after-Free found by the syzbot.\n\nThe problem is that a skb is taken from the per-session skb queue,\nwithout incrementing the ref count. This leads to a Use-after-Free if\nthe skb is taken concurrently from the session queue due to a CTS.","published":"2024-05-21T14:19:35.084Z","updated":"2026-08-05T08:46:51.007Z","reserved":"2024-04-10T18:59:19.530Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"Linux"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"Linux"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"critical","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9d71dd0c70099914fcd063135da3c580865e924c","lessThan":"22cba878abf646cd3a02ee7c8c2cef7afe66a256","status":"affected","versionType":"git"},{"version":"9d71dd0c70099914fcd063135da3c580865e924c","lessThan":"509ab6bfdd0c76daebbad0f0af07da712116de22","status":"affected","versionType":"git"},{"version":"9d71dd0c70099914fcd063135da3c580865e924c","lessThan":"1071065eeb33d32b7d98c2ce7591881ae7381705","status":"affected","versionType":"git"},{"version":"9d71dd0c70099914fcd063135da3c580865e924c","lessThan":"2030043e616cab40f510299f09b636285e0a3678","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","lessThan":"5.4","status":"unaffected","versionType":"semver"},{"version":"5.4.128","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.46","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.12.13","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/22cba878abf646cd3a02ee7c8c2cef7afe66a256","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/509ab6bfdd0c76daebbad0f0af07da712116de22","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/1071065eeb33d32b7d98c2ce7591881ae7381705","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/2030043e616cab40f510299f09b636285e0a3678","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00621,"epssPercentile":0.50512,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47232","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47232","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47232","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47232","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}