{"id":"CVE-2022-48774","state":"PUBLISHED","title":"dmaengine: ptdma: Fix the error handling path in pt_core_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: ptdma: Fix the error handling path in pt_core_init()\n\nIn order to free resources correctly in the error handling path of\npt_core_init(), 2 goto's have to be switched. Otherwise, some resources\nwill leak and we will try to release things that have not been allocated\nyet.\n\nAlso move a dev_err() to a place where it is more meaningful.","publishedAt":"2024-07-16T11:13:13.806Z","updatedAt":"2026-05-11T18:46:40.817Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"3e41445287afa3cf6d572778e5aab31d25e60a8d","versionType":"git"},{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"d7de1e4820c5a42441ff7276174c8c0e63575c1b","versionType":"git"},{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"3c62fd3406e0b2277c76a6984d3979c7f3f1d129","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma/ptdma/ptdma-dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.25","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.11","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma/ptdma/ptdma-dev.c"]}],"references":["https://git.kernel.org/stable/c/3e41445287afa3cf6d572778e5aab31d25e60a8d","https://git.kernel.org/stable/c/d7de1e4820c5a42441ff7276174c8c0e63575c1b","https://git.kernel.org/stable/c/3c62fd3406e0b2277c76a6984d3979c7f3f1d129"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48774.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48774","state":"PUBLISHED","datePublished":"2024-07-16T11:13:13.806Z","dateUpdated":"2026-05-11T18:46:40.817Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-20T11:09:39.061Z"},"containers":{"cna":{"title":"dmaengine: ptdma: Fix the error handling path in pt_core_init()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: ptdma: Fix the error handling path in pt_core_init()\n\nIn order to free resources correctly in the error handling path of\npt_core_init(), 2 goto's have to be switched. Otherwise, some resources\nwill leak and we will try to release things that have not been allocated\nyet.\n\nAlso move a dev_err() to a place where it is more meaningful."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"3e41445287afa3cf6d572778e5aab31d25e60a8d","versionType":"git"},{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"d7de1e4820c5a42441ff7276174c8c0e63575c1b","versionType":"git"},{"version":"fa5d823b16a9442d609617abeec31da8b6afa224","status":"affected","lessThan":"3c62fd3406e0b2277c76a6984d3979c7f3f1d129","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma/ptdma/ptdma-dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.25","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.11","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma/ptdma/ptdma-dev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3e41445287afa3cf6d572778e5aab31d25e60a8d"},{"url":"https://git.kernel.org/stable/c/d7de1e4820c5a42441ff7276174c8c0e63575c1b"},{"url":"https://git.kernel.org/stable/c/3c62fd3406e0b2277c76a6984d3979c7f3f1d129"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:46:40.817Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.25"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.16.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/3e41445287afa3cf6d572778e5aab31d25e60a8d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d7de1e4820c5a42441ff7276174c8c0e63575c1b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3c62fd3406e0b2277c76a6984d3979c7f3f1d129","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:25:00.444Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48774","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:00:39.728801Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:17.803Z"}}]}}}