{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "5267eab88fa4c684459504b8be577ad64953b9a6"
            },
            {
              "fixed": "c6765f39ed27014ff877b00a2efa494233404e17"
            },
            {
              "fixed": "0d35f9f194a858567a21017d69318a51e3a822b9"
            },
            {
              "fixed": "70f1e000b88cfa8ca3fd7f4d082647fc089a7769"
            },
            {
              "fixed": "2c1c805c65fb7dc7524e20376d6987721e73a0b1"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "6.6.144"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.95"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.38"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63826.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: fix use-after-free in store_modes()\n\nstore_modes() replaces a framebuffer's modelist with modes from userspace.\nOn success it frees the old modelist with fb_destroy_modelist(). Two\nfields still point into that freed list.\n\nOne pointer is fb_display[i].mode, the mode a console is using.\nfbcon_new_modelist() moves these pointers to the new list. It only does so\nfor consoles still mapped to the framebuffer. An unmapped console is\nskipped and keeps its stale pointer. Unbinding fbcon, for example, sets\ncon2fb_map[i] to -1 but leaves fb_display[i].mode set. An\nFBIOPUT_VSCREENINFO ioctl with FB_ACTIVATE_INV_MODE later reaches\nfbcon_mode_deleted(). That function reads the stale fb_display[i].mode\nthrough fb_mode_is_equal(). The read is a use-after-free.\n\nThe other pointer is fb_info-\u003emode, the current mode. It is set through\nthe mode sysfs attribute. store_modes() does not update fb_info-\u003emode, so\nit is left pointing into the freed list. show_mode(), the attribute's read\nhandler, dereferences the stale fb_info-\u003emode through mode_string(). The\nread is a use-after-free.\n\nClear both pointers before freeing the list. Commit a1f305893074 (\"fbcon:\nSet fb_display[i]-\u003emode to NULL when the mode is released\") added the\nhelper fbcon_delete_modelist(). It clears every fb_display[i].mode that\npoints into a given list. So far it is called only from the unregister\npath. Call it from store_modes() too, and set fb_info-\u003emode to NULL.",
  "id": "CVE-2026-63826",
  "modified": "2026-07-22T05:30:09.705208463Z",
  "published": "2026-07-19T12:02:21.518Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0d35f9f194a858567a21017d69318a51e3a822b9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c1c805c65fb7dc7524e20376d6987721e73a0b1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5267eab88fa4c684459504b8be577ad64953b9a6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/70f1e000b88cfa8ca3fd7f4d082647fc089a7769"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c6765f39ed27014ff877b00a2efa494233404e17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63826.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-63826"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "fbdev: fix use-after-free in store_modes()"
}