{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "186b89659c4c67cccead52961eab0ca3b23951dc"
            },
            {
              "fixed": "ccd7d2a7ca8eae95afa2ef8323bf185bf275205e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "56c134f7f1b58be08bdb0ca8372474a4a5165f31"
            },
            {
              "fixed": "ac709b87bd958ddb69541c1a3e21e2171aaab121"
            },
            {
              "fixed": "e34ec5752ac1bcf012b294562a0426ee9ad5b156"
            },
            {
              "fixed": "4a9ad942a4b32138ca9167de22c6df02b02f8b09"
            },
            {
              "fixed": "8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb"
            },
            {
              "fixed": "3ec236beefafd91734f5539f12e1918a1392a60f"
            },
            {
              "fixed": "5192201aaac2a923ff98306e3ccda58718ee395f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.15.149"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.19.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138821.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error\n\nfb_deferred_io_init() allocates deferred I/O state, populating\ninfo-\u003efbdefio_state, or leaving it NULL if an error occurs.\n\nCurrently sh_mobile_lcdc_start() ignores its return value.\n\nTherefore if an error arises in fb_deferred_io_init() (for instance, due\nto an allocation failure) info-\u003efbdefio_state is left NULL.\n\nWhen the file is subsequently opened, fb_open() will dereference a NULL\npointer (calling fb_deferred_io_open()).\n\nFix this by checking for the error.\n\nAlso clear info-\u003efbdefio in that case, so that sh_mobile_lcdc_stop() does\nnot attempt to clean up deferred I/O state that was never initialised.",
  "id": "CVE-2026-138821",
  "modified": "2026-12-01T06:45:30.309148156Z",
  "published": "2026-11-30T13:25:17.946Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3ec236beefafd91734f5539f12e1918a1392a60f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4a9ad942a4b32138ca9167de22c6df02b02f8b09"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5192201aaac2a923ff98306e3ccda58718ee395f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ac709b87bd958ddb69541c1a3e21e2171aaab121"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ccd7d2a7ca8eae95afa2ef8323bf185bf275205e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e34ec5752ac1bcf012b294562a0426ee9ad5b156"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138821.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138821"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error"
}