{"id":"CVE-2021-47657","state":"PUBLISHED","title":"drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()\n\nIf virtio_gpu_object_shmem_init() fails (e.g. due to fault injection, as it\nhappened in the bug report by syzbot), virtio_gpu_array_put_free() could be\ncalled with objs equal to NULL.\n\nEnsure that objs is not NULL in virtio_gpu_array_put_free(), or otherwise\nreturn from the function.","publishedAt":"2025-02-26T01:54:20.727Z","updatedAt":"2026-05-23T15:20:24.416Z","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":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"b094fece3810c71ceee6f0921676cb65d4e68c5a","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"ac92b474eeeed75b8660374ba1d129a121c09da8","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"abc9ad36df16e27ac1c665085157f1a082d39bac","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"6b79f96f4a23846516e5e6e4dd37fc06f43a60dd","versionType":"git"},{"version":"244dbb4abe123779ec30e7c6ca283a681aba5c94","status":"affected","versionType":"git"},{"version":"1016c0f62f73d5d2c3a5d1ad1e1fb0cdce1993ae","status":"affected","versionType":"git"},{"version":"5.11.20","status":"affected","lessThan":"5.12","versionType":"semver"},{"version":"5.12.3","status":"affected","lessThan":"5.13","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/virtio/virtgpu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.32","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.18","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.1","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","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/virtio/virtgpu_gem.c"]}],"references":["https://git.kernel.org/stable/c/b094fece3810c71ceee6f0921676cb65d4e68c5a","https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8","https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac","https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47657.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47657","state":"PUBLISHED","datePublished":"2025-02-26T01:54:20.727Z","dateUpdated":"2026-05-23T15:20:24.416Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T01:48:21.521Z"},"containers":{"cna":{"title":"drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()\n\nIf virtio_gpu_object_shmem_init() fails (e.g. due to fault injection, as it\nhappened in the bug report by syzbot), virtio_gpu_array_put_free() could be\ncalled with objs equal to NULL.\n\nEnsure that objs is not NULL in virtio_gpu_array_put_free(), or otherwise\nreturn from the function."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"b094fece3810c71ceee6f0921676cb65d4e68c5a","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"ac92b474eeeed75b8660374ba1d129a121c09da8","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"abc9ad36df16e27ac1c665085157f1a082d39bac","versionType":"git"},{"version":"377f8331d0565e6f71ba081c894029a92d0c7e77","status":"affected","lessThan":"6b79f96f4a23846516e5e6e4dd37fc06f43a60dd","versionType":"git"},{"version":"244dbb4abe123779ec30e7c6ca283a681aba5c94","status":"affected","versionType":"git"},{"version":"1016c0f62f73d5d2c3a5d1ad1e1fb0cdce1993ae","status":"affected","versionType":"git"},{"version":"5.11.20","status":"affected","lessThan":"5.12","versionType":"semver"},{"version":"5.12.3","status":"affected","lessThan":"5.13","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/virtio/virtgpu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.32","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.18","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.1","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","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/virtio/virtgpu_gem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b094fece3810c71ceee6f0921676cb65d4e68c5a"},{"url":"https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8"},{"url":"https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac"},{"url":"https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:20:24.416Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.32"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.16.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.17.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12.3"}]}]}],"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":{"id":"CVE-2021-47657","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:50:10.176030Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:57:06.969Z"}}]}}}