{"id":"CVE-2021-47057","state":"PUBLISHED","title":"crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map\n\nIn the case where the dma_iv mapping fails, the return error path leaks\nthe memory allocated to object d.  Fix this by adding a new error return\nlabel and jumping to this to ensure d is free'd before the return.\n\nAddresses-Coverity: (\"Resource leak\")","publishedAt":"2024-02-29T22:37:32.216Z","updatedAt":"2026-05-11T13:47:14.944Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"617ec35ed51f731a593ae7274228ef2cfc9cb781","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"e1f2d739849c3239df1ea3f97d40bade4b808410","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"6516cb852d704ff8d615de1f93cd443a99736c3d","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"98b5ef3e97b16eaeeedb936f8bda3594ff84a70e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.37","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.21","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.4","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c"]}],"references":["https://git.kernel.org/stable/c/617ec35ed51f731a593ae7274228ef2cfc9cb781","https://git.kernel.org/stable/c/e1f2d739849c3239df1ea3f97d40bade4b808410","https://git.kernel.org/stable/c/6516cb852d704ff8d615de1f93cd443a99736c3d","https://git.kernel.org/stable/c/98b5ef3e97b16eaeeedb936f8bda3594ff84a70e"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47057.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47057","state":"PUBLISHED","datePublished":"2024-02-29T22:37:32.216Z","dateUpdated":"2026-05-11T13:47:14.944Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-29T22:33:44.294Z"},"containers":{"cna":{"title":"crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map\n\nIn the case where the dma_iv mapping fails, the return error path leaks\nthe memory allocated to object d.  Fix this by adding a new error return\nlabel and jumping to this to ensure d is free'd before the return.\n\nAddresses-Coverity: (\"Resource leak\")"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"617ec35ed51f731a593ae7274228ef2cfc9cb781","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"e1f2d739849c3239df1ea3f97d40bade4b808410","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"6516cb852d704ff8d615de1f93cd443a99736c3d","versionType":"git"},{"version":"ac2614d721dea2ff273af19c6c5d508d58a2bb3e","status":"affected","lessThan":"98b5ef3e97b16eaeeedb936f8bda3594ff84a70e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.37","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.21","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.4","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/617ec35ed51f731a593ae7274228ef2cfc9cb781"},{"url":"https://git.kernel.org/stable/c/e1f2d739849c3239df1ea3f97d40bade4b808410"},{"url":"https://git.kernel.org/stable/c/6516cb852d704ff8d615de1f93cd443a99736c3d"},{"url":"https://git.kernel.org/stable/c/98b5ef3e97b16eaeeedb936f8bda3594ff84a70e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:47:14.944Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.37"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.11.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.12.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-03-05T20:56:30.683698Z","id":"CVE-2021-47057","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","type":"CWE","lang":"en","description":"CWE-770 Allocation of Resources Without Limits or Throttling"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-06T14:41:35.263Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/617ec35ed51f731a593ae7274228ef2cfc9cb781","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e1f2d739849c3239df1ea3f97d40bade4b808410","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6516cb852d704ff8d615de1f93cd443a99736c3d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/98b5ef3e97b16eaeeedb936f8bda3594ff84a70e","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:24:39.143Z"}}]}}}