bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-80579

7.8high

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

fbdev: clear fb_info->mode before deleting a videomode

fb_set_var() can delete a mode from info->modelist when userspace passes FB_ACTIVATE_INV_MODE through FBIOPUT_VSCREENINFO. The code checks that the mode being deleted is not the current info->var and that fbcon is not using it, but it does not check fb_info->mode.

fb_info->mode may still point into the modelist entry being deleted. If the entry is freed, later mode sysfs reads through show_mode() can dereference a stale pointer.

Clear fb_info->mode before calling fb_delete_videomode() when it matches the mode being removed.

Published 2026-08-26NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References 2
Review Av26.10.0aarch64_minimalNot exposed✓ accepted by a member, 2026-11-20 · settles 3 of 8

Fable 5.2 · medium confidence · 2026-11-19

The build is affected: fb_set_var() in drivers/video/fbdev/core/fbmem.c still deletes a videomode without clearing fb_info->mode, and no applied patch touches fbdev. The code is compiled in (CONFIG_FB=y, CONFIG_FB_DEVICE=y, CONFIG_DRM_FBDEV_EMULATION=y).

Nothing in the product reaches it, by default or through management. No finit service, confd code or YANG node under board/common/rootfs or src/confd opens /dev/fb* or writes the fbdev sysfs attributes.

Triggering it needs all of the following, which is outside the product: a framebuffer registered by the vc4 module (Raspberry Pi with a display stack), a root write to the 0644 sysfs mode attribute (the only place fb_info->mode is set), and an FBIOPUT_VSCREENINFO ioctl on /dev/fb0 (group video, which has no members). It is not reachable from the network.

Evidence 12
  1. The `FB_ACTIVATE_INV_MODE` branch of `fb_set_var()` checks only `info->var` and `fbcon_mode_deleted()` before calling `fb_delete_videomode()`; `info->mode` is not cleared, so the fix is absent.

    output/build/linux-6.18.60/drivers/video/fbdev/core/fbmem.c:240-254

  2. The only applied patch matching fbdev/video terms is `0033-drm-vc4-dsi-enable-video-and-then-retry-failed-trans.patch`, which is unrelated; no patch touches `fbmem.c`.

    output/build/linux-6.18.60/.applied_patches_list:33

  3. `CONFIG_FB=y`, with `CONFIG_FB_CORE=y` (4489) and `CONFIG_FB_DEVICE=y` (4491), so the `/dev/fb*` char device and the fbdev sysfs attributes are built in.

    output/build/linux-6.18.60/.config:4452

  4. `fbmem.o` was compiled, as were `fbsysfs.o` (19758) and `fb_chrdev.o` (19748).

    output/objects.txt:19757

  5. `CONFIG_DRM_FBDEV_EMULATION=y` and `CONFIG_DRM_CLIENT_DEFAULT_FBDEV=y` (4198): a framebuffer is registered when a DRM driver binds.

    output/build/linux-6.18.60/.config:4195

  6. `CONFIG_DRM_VC4=m` is the only display driver enabled (plus `CONFIG_DRM_V3D=m`, `CONFIG_DRM_PANEL_SIMPLE=m`); all `CONFIG_FB_*` hardware drivers, `CONFIG_DRM_SIMPLEDRM` and `CONFIG_DRM_VIRTIO_GPU` are off. A framebuffer therefore exists only on Raspberry Pi hardware.

    output/build/linux-6.18.60/.config:4415

  7. `store_mode()` is the only place in the fbdev core and `drm_fb_helper.c` that assigns `fb_info->mode`; without that write it stays NULL and `show_mode()` (lines 87-90) returns early.

    output/build/linux-6.18.60/drivers/video/fbdev/core/fbsysfs.c:75

  8. `DEVICE_ATTR(mode, 0644, ...)`: only root can write the attribute that sets up the dangling pointer; anyone can read it afterwards.

    output/build/linux-6.18.60/drivers/video/fbdev/core/fbsysfs.c:427

  9. `SUBSYSTEM=="graphics", GROUP="video"`: `/dev/fb*` is assigned to group `video` with no mode override, so not world-accessible.

    output/target/lib/udev/rules.d/50-udev-default.rules:33

  10. `video:x:28:` has no members, so no non-root account can issue the ioctl in the default image.

    output/target/etc/group:15

  11. A search for `/dev/fb`, `fb[0-9]`, `graphics` and `FBIO` found no service, confd code or YANG node using the framebuffer (the only hits were a README and an unrelated SNMP YANG file).

    board/common/rootfs, src/confd/src, src/confd/yang

  12. The Raspberry Pi board has HDMI ports and references the touch display, so the framebuffer can exist on that supported board.

    board/aarch64/raspberrypi-rpi64/README.md:19

Version and patches

The 6.18.60 source in output/build/linux-6.18.60 does not contain the fix: fb_set_var() at drivers/video/fbdev/core/fbmem.c:240-254 has no info->mode check before fb_delete_videomode(). None of the 139 applied patches touches fbdev.

I could not read the upstream fix commits (95e647d2a530, ce7fef961c63) from this tree, so the fixed 6.18.y stable release number is not confirmed.

Recommendation

Document as not exposed and take the fix with the next routine 6.18.y stable bump that includes "fbdev: clear fb_info->mode before deleting a videomode"; no urgent backport is needed.

The CVSS 7.8 local use-after-free matters only if a product variant gives non-root users video group membership or shell access on Raspberry Pi hardware with a display; re-check if that changes.

If the framebuffer is not needed on these targets, dropping CONFIG_FB_DEVICE or CONFIG_DRM_FBDEV_EMULATION from board/aarch64/linux_defconfig would remove the path.

Open questions
  • –Which 6.18.y release carries the fix: the upstream commits are not readable from this tree.
  • –Whether vc4 binds and registers fb0 on a Raspberry Pi with no display attached was not determined; this would only narrow exposure further.
  • –Infix admin users can reach a shell and may be able to become root. I treated that as outside the management interfaces (a root user already has full control), which is why the verdict is not USED_WHEN_ENABLED.
  • –Confidence is medium because I did not verify that a YANG-created user cannot be put in the video group, and one of my searches of src/confd for that failed on a bad path.

Members of Kernel Kit decide. Sign in if you are one.