{"id":"CVE-2026-80579","state":"PUBLISHED","title":"fbdev: clear fb_info->mode before deleting a videomode","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: clear fb_info->mode before deleting a videomode\n\nfb_set_var() can delete a mode from info->modelist when userspace\npasses FB_ACTIVATE_INV_MODE through FBIOPUT_VSCREENINFO. The code\nchecks that the mode being deleted is not the current info->var and\nthat fbcon is not using it, but it does not check fb_info->mode.\n\nfb_info->mode may still point into the modelist entry being deleted.\nIf the entry is freed, later mode sysfs reads through show_mode() can\ndereference a stale pointer.\n\nClear fb_info->mode before calling fb_delete_videomode() when it\nmatches the mode being removed.","publishedAt":"2026-08-26T14:37:37.320Z","updatedAt":"2026-10-16T19:26:28.024Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ce7fef961c63229b22dec415fb988899f479d61f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"95e647d2a5304a8fd11f1ba3c8502de700650131","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/core/fbmem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/core/fbmem.c"]}],"references":["https://git.kernel.org/stable/c/ce7fef961c63229b22dec415fb988899f479d61f","https://git.kernel.org/stable/c/95e647d2a5304a8fd11f1ba3c8502de700650131"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80579.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80579","state":"PUBLISHED","datePublished":"2026-08-26T14:37:37.320Z","dateUpdated":"2026-10-16T19:26:28.024Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.769Z"},"containers":{"cna":{"title":"fbdev: clear fb_info->mode before deleting a videomode","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: clear fb_info->mode before deleting a videomode\n\nfb_set_var() can delete a mode from info->modelist when userspace\npasses FB_ACTIVATE_INV_MODE through FBIOPUT_VSCREENINFO. The code\nchecks that the mode being deleted is not the current info->var and\nthat fbcon is not using it, but it does not check fb_info->mode.\n\nfb_info->mode may still point into the modelist entry being deleted.\nIf the entry is freed, later mode sysfs reads through show_mode() can\ndereference a stale pointer.\n\nClear fb_info->mode before calling fb_delete_videomode() when it\nmatches the mode being removed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ce7fef961c63229b22dec415fb988899f479d61f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"95e647d2a5304a8fd11f1ba3c8502de700650131","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/core/fbmem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/core/fbmem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ce7fef961c63229b22dec415fb988899f479d61f"},{"url":"https://git.kernel.org/stable/c/95e647d2a5304a8fd11f1ba3c8502de700650131"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through local framebuffer interfaces—FBIOPUT_VSCREENINFO ioctl on /dev/fb* to delete a videomode and sysfs reads of /sys/class/graphics/fb*/mode via show_mode(); fbdev core has no network, Bluetooth, or remote packet path.\nAC:L - Exploitation is a deterministic state bug, not a race: ioctl with FB_ACTIVATE_INV_MODE frees the modelist kmalloc entry while fb_info->mode still points into it, and a subsequent sysfs mode read reliably dereferences the stale pointer without attacker-uncontrollable timing.\nPR:L - The freeing trigger is FBIOPUT_VSCREENINFO on /dev/fb*, which requires only local framebuffer device access (video group or kiosk/embedded/HMI service accounts), not init-namespace root; sysfs mode reads are world-readable and complete the UAF disclosure path.\nUI:N - No victim interaction is required; the attacker performs ioctl mode deletion and sysfs mode reads through their own local process without needing another user to mount, open, or configure unrelated resources.\nS:U - The use-after-free corrupts kernel heap state within the local fbdev subsystem and does not cross VM, container, or IOMMU boundaries to impact resources under a different security authority.\nC:H - After fb_delete_videomode() kfree()s the fb_modelist object, show_mode()/mode_string() reads flag, vmode, xres, yres, and refresh from freed slab memory and copies attacker-influenced bytes to userspace—a UAF information-disclosure primitive.\nI:H - The dangling fb_info->mode pointer into a freed kmalloc object enables classic heap grooming between ioctl free and sysfs read; reallocated slab contents can be corrupted or confused for control-flow or arbitrary-write primitives beyond the immediate read.\nA:H - Dereferencing the freed fb_videomode structure causes KASAN-detectable use-after-free faults and kernel oops/panic on display-equipped embedded, automotive, kiosk, and console systems running the framebuffer subsystem."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-27T05:02:00.629Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-80579","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T19:17:46.592165Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T19:26:28.024Z"}}]}}}