{"id":"CVE-2022-50384","state":"PUBLISHED","title":"staging: vme_user: Fix possible UAF in tsi148_dma_list_add","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: vme_user: Fix possible UAF in tsi148_dma_list_add\n\nSmatch report warning as follows:\n\ndrivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn:\n  '&entry->list' not removed from list\n\nIn tsi148_dma_list_add(), the error path \"goto err_dma\" will not\nremove entry->list from list->entries, but entry will be freed,\nthen list traversal may cause UAF.\n\nFix by removeing it from list->entries before free().","publishedAt":"2025-09-18T13:33:05.759Z","updatedAt":"2026-08-05T08:58:29.333Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"5cc4eea715a3fcf4e516662f736dfee63979465f","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"51c0ad3b7c5b01f9314758335a13f157b05fa56d","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"e6b0adff99edf246ba1f8d464530a0438cb1cbda","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"a45ba33d398a821147d7e5f16ead7eb125e331e2","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"5d2b286eb034af114f67d9967fc3fbc1829bb712","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"1f5661388f43df3ac106ce93e67d8d22b16a78ff","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"cf138759a7e92c75cfc1b7ba705e4108fe330edf","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"85db68fc901da52314ded80aace99f8b684c7815","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"357057ee55d3c99a5de5abe8150f7bca04f8e53b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/vme_user/vme_tsi148.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"4.9.337","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.303","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.270","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.229","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/vme_user/vme_tsi148.c"]}],"references":["https://git.kernel.org/stable/c/5cc4eea715a3fcf4e516662f736dfee63979465f","https://git.kernel.org/stable/c/51c0ad3b7c5b01f9314758335a13f157b05fa56d","https://git.kernel.org/stable/c/e6b0adff99edf246ba1f8d464530a0438cb1cbda","https://git.kernel.org/stable/c/a45ba33d398a821147d7e5f16ead7eb125e331e2","https://git.kernel.org/stable/c/5d2b286eb034af114f67d9967fc3fbc1829bb712","https://git.kernel.org/stable/c/1f5661388f43df3ac106ce93e67d8d22b16a78ff","https://git.kernel.org/stable/c/cf138759a7e92c75cfc1b7ba705e4108fe330edf","https://git.kernel.org/stable/c/85db68fc901da52314ded80aace99f8b684c7815","https://git.kernel.org/stable/c/357057ee55d3c99a5de5abe8150f7bca04f8e53b"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50384.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50384","state":"PUBLISHED","datePublished":"2025-09-18T13:33:05.759Z","dateUpdated":"2026-08-05T08:58:29.333Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:06.997Z"},"containers":{"cna":{"title":"staging: vme_user: Fix possible UAF in tsi148_dma_list_add","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: vme_user: Fix possible UAF in tsi148_dma_list_add\n\nSmatch report warning as follows:\n\ndrivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn:\n  '&entry->list' not removed from list\n\nIn tsi148_dma_list_add(), the error path \"goto err_dma\" will not\nremove entry->list from list->entries, but entry will be freed,\nthen list traversal may cause UAF.\n\nFix by removeing it from list->entries before free()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"5cc4eea715a3fcf4e516662f736dfee63979465f","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"51c0ad3b7c5b01f9314758335a13f157b05fa56d","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"e6b0adff99edf246ba1f8d464530a0438cb1cbda","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"a45ba33d398a821147d7e5f16ead7eb125e331e2","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"5d2b286eb034af114f67d9967fc3fbc1829bb712","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"1f5661388f43df3ac106ce93e67d8d22b16a78ff","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"cf138759a7e92c75cfc1b7ba705e4108fe330edf","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"85db68fc901da52314ded80aace99f8b684c7815","versionType":"git"},{"version":"b2383c90a9d691201b9aee557776694cde86a935","status":"affected","lessThan":"357057ee55d3c99a5de5abe8150f7bca04f8e53b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/vme_user/vme_tsi148.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"4.9.337","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.303","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.270","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.229","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/vme_user/vme_tsi148.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5cc4eea715a3fcf4e516662f736dfee63979465f"},{"url":"https://git.kernel.org/stable/c/51c0ad3b7c5b01f9314758335a13f157b05fa56d"},{"url":"https://git.kernel.org/stable/c/e6b0adff99edf246ba1f8d464530a0438cb1cbda"},{"url":"https://git.kernel.org/stable/c/a45ba33d398a821147d7e5f16ead7eb125e331e2"},{"url":"https://git.kernel.org/stable/c/5d2b286eb034af114f67d9967fc3fbc1829bb712"},{"url":"https://git.kernel.org/stable/c/1f5661388f43df3ac106ce93e67d8d22b16a78ff"},{"url":"https://git.kernel.org/stable/c/cf138759a7e92c75cfc1b7ba705e4108fe330edf"},{"url":"https://git.kernel.org/stable/c/85db68fc901da52314ded80aace99f8b684c7815"},{"url":"https://git.kernel.org/stable/c/357057ee55d3c99a5de5abe8150f7bca04f8e53b"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - The UAF is in the TSI148 VME bridge DMA-list builder (`tsi148_dma_list_add`), reached only through the local VME DMA API (`vme_dma_list_add`) used by VME device drivers on systems with the PCI TSI148 bridge—not via network packets or physical attachment alone.\nAC:L - An attacker who can drive DMA-list add/free can induce a `dma_map_single` failure (IOVA/swiotlb exhaustion), leave the freed entry linked, then trigger UAF on the next add (`prev->descriptor` write), `tsi148_dma_list_exec`, or `tsi148_dma_list_empty`; no attacker-uncontrollable race is required.\nPR:L - The VME DMA path has no `capable()`/`CAP_*` gate—only whatever DAC the consuming driver/device node applies. On TSI148 industrial/DAQ deployments (the intended consumers of this EXPORT_SYMBOL API), a non-root service account with VME device access is a reasonable worst case, matching CVE-2026-64449 for this subsystem.\nUI:N - The attacker initiates the DMA-list operations that hit the err_dma path and subsequent list walk themselves; no separate victim action is required.\nS:U - This is a standard in-kernel heap UAF within the host VME bridge driver and does not cross a VM, IOMMU, or other security-authority boundary.\nC:H - Use-after-free of the linked `tsi148_dma_entry` lets an attacker reclaim the object and control contents read on later list traversal/exec, enabling arbitrary kernel memory disclosure per UAF guidance.\nI:H - The same dangling list entry is written via the next-add prev-link update, and `tsi148_dma_list_empty` can double-free/unmap with a garbage `dma_handle`, yielding heap corruption and control-flow hijack primitives.\nA:H - Any subsequent list walk of the freed entry (empty/exec/add) can oops/panic the kernel, so availability impact is High even without full exploitation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:58:29.333Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.9.337"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.14.303"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.19.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.4.229"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.10.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.15.86"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"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-2022-50384","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-14T18:48:36.418605Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:53:04.397Z"}}]}}}