Skip to content

[SECURITY] virtio-console: avoid DMA from stack (CVE-2017-8067)#121

Open
Mifacopy wants to merge 1 commit intofacebookincubator:oculus-go-kernel-masterfrom
Mifacopy:patch-16
Open

[SECURITY] virtio-console: avoid DMA from stack (CVE-2017-8067)#121
Mifacopy wants to merge 1 commit intofacebookincubator:oculus-go-kernel-masterfrom
Mifacopy:patch-16

Conversation

@Mifacopy
Copy link

Fix CVE-2017-8067.

Upstream commit: c4baad50297d84bde1a7ad45e50c73adae4a2192

virtio-console put_chars() may build a DMA scatterlist from a buffer that can
reside on the (vmap) stack. With CONFIG_VMAP_STACK enabled, this can span
multiple virtual pages and trigger incorrect DMA handling, leading to a
system crash or memory corruption.

This patch avoids DMA from stack by duplicating the buffer into kmalloc
memory before issuing the transfer.

Reference: CVE-2017-8067

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant