{"id":"CVE-2021-47519","published":"2024-05-24T15:09:33Z","modified":"2026-05-11T13:56:13Z","title":"can: m_can: m_can_read_fifo: fix memory leak in error branch","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: m_can: m_can_read_fifo: fix memory leak in error branch\n\nIn m_can_read_fifo(), if the second call to m_can_fifo_read() fails,\nthe function jump to the out_fail label and returns without calling\nm_can_receive_skb(). This means that the skb previously allocated by\nalloc_can_skb() is not freed. In other terms, this is a memory leak.\n\nThis patch adds a goto label to destroy the skb if an error occurs.\n\nIssue was found with GCC -fanalyzer, please follow the link below for\ndetails.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00496,"percentile":0.43466,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/75a422165477dd12d2d20aa7c9ee7c9a281c9908","tags":[]},{"url":"https://git.kernel.org/stable/c/31cb32a590d62b18f69a9a6d433f4e69c74fdd56","tags":[]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.69},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e39381770ec9ca3c51d8b9bd9cc6e01d78ea974a, < 75a422165477dd12d2d20aa7c9ee7c9a281c9908",">= e39381770ec9ca3c51d8b9bd9cc6e01d78ea974a, < 31cb32a590d62b18f69a9a6d433f4e69c74fdd56"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-05T16:07:08.194411Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34523","exploited":false,"provenance":"source"}}