{"id":"CVE-2026-74381","state":"PUBLISHED","title":"gpu: host1x: Allow entries in BO caches to be freed","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpu: host1x: Allow entries in BO caches to be freed\n\nWhen a buffer object is pinned via host1x_bo_pin() with a cache, the\nresulting mapping is kept in the cache so it can be reused on subsequent\npins. Each mapping held a reference to the underlying host1x_bo (taken\nin tegra_bo_pin / gather_bo_pin), so as long as a mapping was cached,\nthe bo itself could not be freed.\n\nHowever, the only way to remove the cached mapping was through the free\npath of the buffer object. This meant that if a bo got cached, it could\nnever get freed again.\n\nResolve the circularity by holding a weak reference to the bo from the\ncache side. This is done by having the .pin callbacks not bump the bo's\nrefcount -- instead the common Host1x bo code does so, except for the\ncache reference.\n\nAlso move the remove-cache-mapping-on-free code into a common function\ninside Host1x code. This is only called from the TegraDRM GEM buffers\nsince those are the only ones that can be cached at the moment.","publishedAt":"2026-08-15T05:58:58.354Z","updatedAt":"2026-08-17T05:18:19.071Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"af755456299d44e4ed6af3b7c70a7f03ea37fdf1","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"71c017b3f83ff72638f2a1b1d6d4e7bc61d30231","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"0e9dd7cfb9986b78cc81eca126ccfbf57f4c0602","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"8c0d3cf0d5108c96317e0eca92b60dd368867cef","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"df63c76f9c8d881ca7bce1aecfba512328d0527d","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"3cbf5e3c46e66d9b3b6b91099bb720c6cb1be3bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/tegra/gem.c","drivers/gpu/drm/tegra/submit.c","drivers/gpu/host1x/bus.c","include/linux/host1x.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/tegra/gem.c","drivers/gpu/drm/tegra/submit.c","drivers/gpu/host1x/bus.c","include/linux/host1x.h"]}],"references":["https://git.kernel.org/stable/c/af755456299d44e4ed6af3b7c70a7f03ea37fdf1","https://git.kernel.org/stable/c/71c017b3f83ff72638f2a1b1d6d4e7bc61d30231","https://git.kernel.org/stable/c/0e9dd7cfb9986b78cc81eca126ccfbf57f4c0602","https://git.kernel.org/stable/c/8c0d3cf0d5108c96317e0eca92b60dd368867cef","https://git.kernel.org/stable/c/df63c76f9c8d881ca7bce1aecfba512328d0527d","https://git.kernel.org/stable/c/3cbf5e3c46e66d9b3b6b91099bb720c6cb1be3bc"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74381.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74381","state":"PUBLISHED","datePublished":"2026-08-15T05:58:58.354Z","dateUpdated":"2026-08-17T05:18:19.071Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.890Z"},"containers":{"cna":{"title":"gpu: host1x: Allow entries in BO caches to be freed","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpu: host1x: Allow entries in BO caches to be freed\n\nWhen a buffer object is pinned via host1x_bo_pin() with a cache, the\nresulting mapping is kept in the cache so it can be reused on subsequent\npins. Each mapping held a reference to the underlying host1x_bo (taken\nin tegra_bo_pin / gather_bo_pin), so as long as a mapping was cached,\nthe bo itself could not be freed.\n\nHowever, the only way to remove the cached mapping was through the free\npath of the buffer object. This meant that if a bo got cached, it could\nnever get freed again.\n\nResolve the circularity by holding a weak reference to the bo from the\ncache side. This is done by having the .pin callbacks not bump the bo's\nrefcount -- instead the common Host1x bo code does so, except for the\ncache reference.\n\nAlso move the remove-cache-mapping-on-free code into a common function\ninside Host1x code. This is only called from the TegraDRM GEM buffers\nsince those are the only ones that can be cached at the moment."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"af755456299d44e4ed6af3b7c70a7f03ea37fdf1","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"71c017b3f83ff72638f2a1b1d6d4e7bc61d30231","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"0e9dd7cfb9986b78cc81eca126ccfbf57f4c0602","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"8c0d3cf0d5108c96317e0eca92b60dd368867cef","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"df63c76f9c8d881ca7bce1aecfba512328d0527d","versionType":"git"},{"version":"1f39b1dfa53c84b56d7ad37fed44afda7004959d","status":"affected","lessThan":"3cbf5e3c46e66d9b3b6b91099bb720c6cb1be3bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/tegra/gem.c","drivers/gpu/drm/tegra/submit.c","drivers/gpu/host1x/bus.c","include/linux/host1x.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/tegra/gem.c","drivers/gpu/drm/tegra/submit.c","drivers/gpu/host1x/bus.c","include/linux/host1x.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/af755456299d44e4ed6af3b7c70a7f03ea37fdf1"},{"url":"https://git.kernel.org/stable/c/71c017b3f83ff72638f2a1b1d6d4e7bc61d30231"},{"url":"https://git.kernel.org/stable/c/0e9dd7cfb9986b78cc81eca126ccfbf57f4c0602"},{"url":"https://git.kernel.org/stable/c/8c0d3cf0d5108c96317e0eca92b60dd368867cef"},{"url":"https://git.kernel.org/stable/c/df63c76f9c8d881ca7bce1aecfba512328d0527d"},{"url":"https://git.kernel.org/stable/c/3cbf5e3c46e66d9b3b6b91099bb720c6cb1be3bc"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:18:19.071Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}