{"id":"CVE-2026-23158","state":"PUBLISHED","title":"gpio: virtuser: fix UAF in configfs release path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: fix UAF in configfs release path\n\nThe gpio-virtuser configfs release path uses guard(mutex) to protect\nthe device structure. However, the device is freed before the guard\ncleanup runs, causing mutex_unlock() to operate on freed memory.\n\nSpecifically, gpio_virtuser_device_config_group_release() destroys\nthe mutex and frees the device while still inside the guard(mutex)\nscope. When the function returns, the guard cleanup invokes\nmutex_unlock(&dev->lock), resulting in a slab use-after-free.\n\nLimit the mutex lifetime by using a scoped_guard() only around the\nactivation check, so that the lock is released before mutex_destroy()\nand kfree() are called.","publishedAt":"2026-02-14T16:01:24.568Z","updatedAt":"2026-05-11T22:01:20.155Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"815a8e3bf72811d402b30bd4a53cde5e9df7a563","versionType":"git"},{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"7bec90f605cfb138006f5ba575f2310593347110","versionType":"git"},{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"53ad4a948a4586359b841d607c08fb16c5503230","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-virtuser.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.69","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.9","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-virtuser.c"]}],"references":["https://git.kernel.org/stable/c/815a8e3bf72811d402b30bd4a53cde5e9df7a563","https://git.kernel.org/stable/c/7bec90f605cfb138006f5ba575f2310593347110","https://git.kernel.org/stable/c/53ad4a948a4586359b841d607c08fb16c5503230"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23158.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23158","state":"PUBLISHED","datePublished":"2026-02-14T16:01:24.568Z","dateUpdated":"2026-05-11T22:01:20.155Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.978Z"},"containers":{"cna":{"title":"gpio: virtuser: fix UAF in configfs release path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: fix UAF in configfs release path\n\nThe gpio-virtuser configfs release path uses guard(mutex) to protect\nthe device structure. However, the device is freed before the guard\ncleanup runs, causing mutex_unlock() to operate on freed memory.\n\nSpecifically, gpio_virtuser_device_config_group_release() destroys\nthe mutex and frees the device while still inside the guard(mutex)\nscope. When the function returns, the guard cleanup invokes\nmutex_unlock(&dev->lock), resulting in a slab use-after-free.\n\nLimit the mutex lifetime by using a scoped_guard() only around the\nactivation check, so that the lock is released before mutex_destroy()\nand kfree() are called."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"815a8e3bf72811d402b30bd4a53cde5e9df7a563","versionType":"git"},{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"7bec90f605cfb138006f5ba575f2310593347110","versionType":"git"},{"version":"91581c4b3f29e2e22aeb1a62e842d529ca638b2d","status":"affected","lessThan":"53ad4a948a4586359b841d607c08fb16c5503230","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-virtuser.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.69","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.9","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-virtuser.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/815a8e3bf72811d402b30bd4a53cde5e9df7a563"},{"url":"https://git.kernel.org/stable/c/7bec90f605cfb138006f5ba575f2310593347110"},{"url":"https://git.kernel.org/stable/c/53ad4a948a4586359b841d607c08fb16c5503230"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:01:20.155Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.69"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}