{
  "id": "CVE-2026-53402",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53402",
  "published_at": "2026-07-19T12:02:01.795Z",
  "title": "fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()\n\nWhen fbcon_do_set_font() fails (e.g., due to a memory allocation failure\ninside vc_resize() under heavy memory pressure), it jumps to the `err_out`\nlabel to roll back the console state. However, the current rollback logic\nforgets to restore the `hi_font` state, leading to a severe state machine\ncorruption.\n\nEarlier in the function, `set_vc_hi_font()` might be called to change\n`vc-\u003evc_hi_font_mask` and mutate the screen buffer. If `vc_resize()`\nsubsequently fails, the `err_out` path restores `vc_font.charcount`\nbut entirely skips rolling back the `vc_hi_font_mask` and the screen\nbuffer.\n\nThis mismatch leaves the terminal in a desynchronized state. Because\n`vc_hi_font_mask` remains set, the VT subsystem will still accept\ncharacter indices greater than 255 from userspace and write them to the\nscreen buffer. Subsequent rendering calls (e.g., `fbcon_putcs()`) will\nthen use these inflated indices to access the reverted, 256-character\nfont array, leading to a deterministic out-of-bounds read and potential\nkernel memory disclosure.\n\nFix this by adding the missing rollback logic for the `hi_font` mask\nand screen buffer in the error path.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 868749a7456dc48e93887a8474194e2ee6d6c21f, \u003c cb016bcb40c81e7b19c4ae6143babb366dae8e20",
          "\u003e= ebd6f886aa2447fcfcdce5450c9e1028e1d681bb, \u003c ac562193c36696513ae196171892e9338475c4bc",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c 3618a4c5b2591cfa83efe74f5b18c2d02b35c3f5",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c a7a526fbc847f07ad3a503c7382189be5ab68574",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c b5bb2c696e140c399cb874def2feedf61dee27d6",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c 076b1aa65f77a49bce5a48a4a55a397cfcafa2b8",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c 39815715cbcfabb16fc8c5f4a23deeda20f5df62",
          "\u003e= a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24, \u003c 8fdc8c2057eea08d40ce2c8eed41ff9e451c65c2",
          "f08ccb792d3eaf1dc62d8cbf6a30d6522329f660",
          "\u003e= 5.10.249, \u003c 5.10.261",
          "\u003e= 5.15.64, \u003c 5.15.212",
          "\u003e= 5.19.6, \u003c 5.20"
        ],
        "fixed_in": [
          "cb016bcb40c81e7b19c4ae6143babb366dae8e20",
          "ac562193c36696513ae196171892e9338475c4bc",
          "3618a4c5b2591cfa83efe74f5b18c2d02b35c3f5",
          "a7a526fbc847f07ad3a503c7382189be5ab68574",
          "b5bb2c696e140c399cb874def2feedf61dee27d6",
          "076b1aa65f77a49bce5a48a4a55a397cfcafa2b8",
          "39815715cbcfabb16fc8c5f4a23deeda20f5df62",
          "8fdc8c2057eea08d40ce2c8eed41ff9e451c65c2",
          "5.10.261",
          "5.15.212",
          "5.20"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "5.10.261",
          "5.15.212",
          "6.1.178",
          "6.6.145",
          "6.12.96",
          "6.18.39",
          "7.1.3",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to cb016bcb40c81e7b19c4ae6143babb366dae8e20 or ac562193c36696513ae196171892e9338475c4bc or 3618a4c5b2591cfa83efe74f5b18c2d02b35c3f5 or a7a526fbc847f07ad3a503c7382189be5ab68574 or b5bb2c696e140c399cb874def2feedf61dee27d6 or 076b1aa65f77a49bce5a48a4a55a397cfcafa2b8 or 39815715cbcfabb16fc8c5f4a23deeda20f5df62 or 8fdc8c2057eea08d40ce2c8eed41ff9e451c65c2 or 5.10.261 or 5.15.212 or 5.20 or later.",
      "Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.3 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
