# CVE-2026-46312: media: videobuf2: Set vma\_flags in vb2\_dma\_sg\_mmap

> 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-06-08T15:50:42.964Z
- **Modified:** 2026-11-06T17:17:55.383Z

## Who should check

- Anyone running Linux \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb34085774d7b6d09265883782160100c5aac28; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb17524aa4ec337749344be0db52b88663e25ab; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 1a1360264f699521e001e7739009ee3ee3c6a4f5; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 21fade52ab9fb13368a5709e60b0d9909197aeae; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< b4cf91658a636618f1437beec971dec25dec28eb; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 7254b31a13aaa0c2c0f9ffbc335b718656117ff4
- Anyone running Linux 2.6.39

## Description

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

media: videobuf2: Set vma\_flags in vb2\_dma\_sg\_mmap

vb2\_dma\_contig sets VMA flags VM\_DONTEXPAND and VM\_DONTDUMP and I do not
see a reason why vb2\_dma\_sg should behave differently. This avoids
hitting \`WARN\_ON(!(vma-\>vm\_flags & VM\_DONTEXPAND));\` in
drm\_gem\_mmap\_obj() during mmap() of an imported dma-buf from the out of
tree Apple ISP camera capture driver which uses vb2\_dma\_sg\_memops.

gst-launch-1.0 v4l2src ! gtk4paintablesink

\[   38.201528\] ------------\[ cut here \]------------
\[   38.202135\] WARNING: CPU: 7 PID: 2362 at drivers/gpu/drm/drm\_gem.c:1144 drm\_gem\_mmap\_obj+0x1f8/0x210
\[   38.203278\] Modules linked in: rfcomm snd\_seq\_dummy snd\_hrtimer
snd\_seq snd\_seq\_device uinput nf\_conntrack\_netbios\_ns
nf\_conntrack\_broadcast nft\_fib\_inet nft\_fib\_ipv4 nft\_fib\_ipv6 nft\_fib
nft\_reject\_inet nf\_reject\_ipv6 nft\_reject nft\_ct nft\_chain\_nat nf\_nat
nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 nf\_tables qrtr bnep
nls\_ascii i2c\_dev loop fuse dm\_multipath nfnetlink brcmfmac\_wcc
hid\_magicmouse hci\_bcm4377 brcmfmac brcmutil bluetooth ecdh\_generic
cfg80211 ecc btrfs xor xor\_neon rfkill hid\_apple raid6\_pq joydev
aop\_als apple\_nvmem\_spmi industrialio snd\_soc\_aop apple\_z2
snd\_soc\_cs42l84 tps6598x snd\_soc\_tas2764 macsmc\_reboot spi\_nor
macsmc\_hwmon rtc\_macsmc gpio\_macsmc macsmc\_power regmap\_spmi
macsmc\_input dockchannel\_hid panel\_summit appledrm nvme\_apple dwc3
snd\_soc\_macaudio drm\_client\_lib nvme\_core phy\_apple\_atc hwmon
apple\_sart apple\_dockchannel macsmc apple\_rtkit\_helper
spmi\_apple\_controller aop apple\_wdt mfd\_core nvmem\_apple\_efuses
pinctrl\_apple\_gpio apple\_isp apple\_dcp videobuf2\_dma\_sg mux\_core
spi\_apple
\[   38.203300\]  videobuf2\_memops i2c\_pasemi\_platform snd\_soc\_apple\_mca videobuf2\_v4l2 videodev clk\_apple\_nco videobuf2\_common snd\_pcm\_dmaengine adpdrm asahi apple\_admac adpdrm\_mipi drm\_dma\_helper pwm\_apple i2c\_pasemi\_core drm\_display\_helper mc cec apple\_dart ofpart apple\_soc\_cpufreq leds\_pwm phram
\[   38.217677\] CPU: 7 UID: 1000 PID: 2362 Comm: gst-launch-1.0 Tainted: G        W           6.17.6+ \#asahi-dev PREEMPT(full)
\[   38.219040\] Tainted: \[W\]=WARN
\[   38.219398\] Hardware name: Apple MacBook Pro (13-inch, M2, 2022) (DT)
\[   38.220213\] pstate: 21400005 (nzCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
\[   38.221088\] pc : drm\_gem\_mmap\_obj+0x1f8/0x210
\[   38.221643\] lr : drm\_gem\_mmap\_obj+0x78/0x210
\[   38.222178\] sp : ffffc0008dc678e0
\[   38.222579\] x29: ffffc0008dc678e0 x28: 0000000000042a97 x27: ffff8000b701b480
\[   38.223465\] x26: 00000000000000fb x25: ffffc0008dc67d20 x24: ffffc0008dc67968
\[   38.224402\] x23: ffff8000e3ca5600 x22: ffff8000265b7800 x21: ffff80003000c0c0
\[   38.225279\] x20: 0000000000000000 x19: ffff8000b68c5200 x18: ffffc0008dc67968
\[   38.226151\] x17: 0000000000000000 x16: 0000000000000000 x15: ffffc000810a30a8
\[   38.227042\] x14: 00007fff637effff x13: 00005555de91ffff x12: 00007fff63293fff
\[   38.227942\] x11: 0000000000000000 x10: ffff8000184ecf08 x9 : ffffc0007a1900c8
\[   38.228824\] x8 : ffffc0008dc67968 x7 : 0000000000000012 x6 : ffffc0015cf1c000
\[   38.229703\] x5 : ffffc0008dc676a0 x4 : ffffc00081a27dc0 x3 : 0000000000000038
\[   38.230607\] x2 : 0000000000000003 x1 : 0000000000000003 x0 : 00000000100000fb
\[   38.231488\] Call trace:
\[   38.231806\]  drm\_gem\_mmap\_obj+0x1f8/0x210 (P)
\[   38.232342\]  drm\_gem\_mmap+0x140/0x260
\[   38.232813\]  \_\_mmap\_region+0x488/0x9a0
\[   38.233277\]  mmap\_region+0xd0/0x148
\[   38.233703\]  do\_mmap+0x350/0x5c0
\[   38.234148\]  vm\_mmap\_pgoff+0x14c/0x200
\[   38.234612\]  ksys\_mmap\_pgoff+0x150/0x208
\[   38.235107\]  \_\_arm64\_sys\_mmap+0x34/0x50
\[   38.235611\]  invoke\_syscall+0x50/0x120
\[   38.236075\]  el0\_svc\_common.constprop.0+0x48/0xf0
\[   38.236680\]  do\_el0\_svc+0x24/0x38
\[   38.237113\]  el0\_svc+0x38/0x168
\[   38.237507\]  el0t\_64\_sync\_handler+0xa0/0xe8
\[   38.238034\]  el0t\_64\_sync+0x198/0x1a0
\[   38.238491\] ---\[ end trace 0000000000000000 \]---

There were discussions in \[1\] at the end of 2023 that mmap() on imported
---truncated---

## Affected and fixed versions

- Linux: \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb34085774d7b6d09265883782160100c5aac28; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb17524aa4ec337749344be0db52b88663e25ab; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 1a1360264f699521e001e7739009ee3ee3c6a4f5; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 21fade52ab9fb13368a5709e60b0d9909197aeae; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< b4cf91658a636618f1437beec971dec25dec28eb; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 7254b31a13aaa0c2c0f9ffbc335b718656117ff4 (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 7254b31a13aaa0c2c0f9ffbc335b718656117ff4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46312.md
Affected: Linux >= 5ba3f757f0592ca001266b4a6214d0332349909c, < feb34085774d7b6d09265883782160100c5aac28; >= 5ba3f757f0592ca001266b4a6214d0332349909c, < feb17524aa4ec337749344be0db52b88663e25ab; >= 5ba3f757f0592ca001266b4a6214d0332349909c, < 1a1360264f699521e001e7739009ee3ee3c6a4f5; >= 5ba3f757f0592ca001266b4…
Fixed in: Linux 1a1360264f699521e001e7739009ee3ee3c6a4f5, Linux 21fade52ab9fb13368a5709e60b0d9909197aeae, Linux 7254b31a13aaa0c2c0f9ffbc335b718656117ff4

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-2026-46312 being exploited?

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

### How serious is CVE-2026-46312?

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

### Which versions are affected by CVE-2026-46312?

Linux \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb34085774d7b6d09265883782160100c5aac28; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< feb17524aa4ec337749344be0db52b88663e25ab; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 1a1360264f699521e001e7739009ee3ee3c6a4f5; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 21fade52ab9fb13368a5709e60b0d9909197aeae; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< b4cf91658a636618f1437beec971dec25dec28eb; \>= 5ba3f757f0592ca001266b4a6214d0332349909c, \< 7254b31a13aaa0c2c0f9ffbc335b718656117ff4; Linux 2.6.39.

### Is there a fix for CVE-2026-46312?

Yes. Fixed in Linux 1a1360264f699521e001e7739009ee3ee3c6a4f5, Linux 21fade52ab9fb13368a5709e60b0d9909197aeae, Linux 7254b31a13aaa0c2c0f9ffbc335b718656117ff4. Upgrade Linux to 7254b31a13aaa0c2c0f9ffbc335b718656117ff4 or later.

### How do I check if I'm affected by CVE-2026-46312?

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/feb17524aa4ec337749344be0db52b88663e25ab>
- patch: <https://git.kernel.org/stable/c/1a1360264f699521e001e7739009ee3ee3c6a4f5>
- patch: <https://git.kernel.org/stable/c/21fade52ab9fb13368a5709e60b0d9909197aeae>
- patch: <https://git.kernel.org/stable/c/b4cf91658a636618f1437beec971dec25dec28eb>
- patch: <https://git.kernel.org/stable/c/7254b31a13aaa0c2c0f9ffbc335b718656117ff4>
- other: <https://git.kernel.org/stable/c/feb34085774d7b6d09265883782160100c5aac28>

## 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-2026-46312>

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