# CVE-2024-46698: video/aperture: optionally match the device in sysfb\_disable()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-09-13T05:29:25.387Z
- **Modified:** 2026-06-17T07:55:45.233Z

## Who should check

- Anyone running Linux \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< 17e78f43de0c6da34204cc858b4cc05671ea9acf; \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< b49420d6a1aeb399e5b107fc6eb8584d0860fbd7; 485ec8f8e1d8ae12aa1daa5ad345ba8940ad2db7; \>= 6.1.47, \< 6.2
- Anyone running Linux 6.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

video/aperture: optionally match the device in sysfb\_disable()

In aperture\_remove\_conflicting\_pci\_devices(), we currently only
call sysfb\_disable() on vga class devices.  This leads to the
following problem when the pimary device is not VGA compatible:

1. A PCI device with a non-VGA class is the boot display
2. That device is probed first and it is not a VGA device so
   sysfb\_disable() is not called, but the device resources
   are freed by aperture\_detach\_platform\_device()
3. Non-primary GPU has a VGA class and it ends up calling sysfb\_disable()
4. NULL pointer dereference via sysfb\_disable() since the resources
   have already been freed by aperture\_detach\_platform\_device() when
   it was called by the other device.

Fix this by passing a device pointer to sysfb\_disable() and checking
the device to determine if we should execute it or not.

v2: Fix build when CONFIG\_SCREEN\_INFO is not set
v3: Move device check into the mutex
    Drop primary variable in aperture\_remove\_conflicting\_pci\_devices()
    Drop \_\_init on pci sysfb\_pci\_dev\_is\_enabled()

## Affected and fixed versions

- Linux: \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< 17e78f43de0c6da34204cc858b4cc05671ea9acf; \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< b49420d6a1aeb399e5b107fc6eb8584d0860fbd7; 485ec8f8e1d8ae12aa1daa5ad345ba8940ad2db7; \>= 6.1.47, \< 6.2 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-46698. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46698.md
Affected: Linux >= 5ae3716cfdcd286268133867f67d0803847acefc, < 17e78f43de0c6da34204cc858b4cc05671ea9acf; >= 5ae3716cfdcd286268133867f67d0803847acefc, < b49420d6a1aeb399e5b107fc6eb8584d0860fbd7; 485ec8f8e1d8ae12aa1daa5ad345ba8940ad2db7; >= 6.1.47, < 6.2; Linux 6.5
Fixed in: Linux 17e78f43de0c6da34204cc858b4cc05671ea9acf, Linux 6.2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-46698 being exploited?

There is no confirmed exploitation: CVE-2024-46698 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-46698?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46698?

Linux \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< 17e78f43de0c6da34204cc858b4cc05671ea9acf; \>= 5ae3716cfdcd286268133867f67d0803847acefc, \< b49420d6a1aeb399e5b107fc6eb8584d0860fbd7; 485ec8f8e1d8ae12aa1daa5ad345ba8940ad2db7; \>= 6.1.47, \< 6.2; Linux 6.5.

### Is there a fix for CVE-2024-46698?

Yes. Fixed in Linux 17e78f43de0c6da34204cc858b4cc05671ea9acf, Linux 6.2. Upgrade Linux to 6.2 or later.

### How do I check if I'm affected by CVE-2024-46698?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/17e78f43de0c6da34204cc858b4cc05671ea9acf>
- patch: <https://git.kernel.org/stable/c/b49420d6a1aeb399e5b107fc6eb8584d0860fbd7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46698>

HTML: <https://flawdb.com/CVE-2024-46698> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46698>
