---
id: CVE-2026-98404
title: >-
  In the Linux kernel, the following vulnerability has been resolved:


  drm/virtio: Fix a NULL vs ERR_PTR() bug in
  virtio_gpu_user_framebuffer_create()


  Smatch complains that returning a NULL here will lead to a NULL pointer

  dereference in …
summary: >-
  In the Linux kernel, the following vulnerability has been resolved:


  drm/virtio: Fix a NULL vs ERR_PTR() bug in
  virtio_gpu_user_framebuffer_create()


  Smatch complains that returning a NULL here will lead to a NULL pointer

  dereference in …
severity: none
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T14:17:51.483'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98404'
references:
  - url: 'https://git.kernel.org/stable/c/07de0b31dd64094cd7d25729beaf2ecae74daa72'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3fe8a33715265ecb24ca0bcd0a575c926da4277c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/45dc2788a5b0e1e2824d1f98af521bd3acc340d7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5eda6cda0031ba17559d56882353be39e568ec09'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/94579f24e2b526a04eb41050af0ba018c6f528e7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/974845d2535a250b180e62f9ed50284f312c01a3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/975f3cf302bb7d7336df4c630a7c07e12780ad10'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f1050a7d365283678b253828739d3866ae546a72'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
ingestedAt: '2026-10-14T15:36:13.982Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

drm/virtio: Fix a NULL vs ERR_PTR() bug in virtio_gpu_user_framebuffer_create()

Smatch complains that returning a NULL here will lead to a NULL pointer
dereference in drm_mode_addfb2().  Return an error pointer instead.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
