Skip to content

[ciqlts9_6] macvlan: fix possible UAF in macvlan_forward_source()#1016

Merged
roxanan1996 merged 1 commit intociqlts9_6from
{ciq_kernel_automation}_ciqlts9_6
Mar 26, 2026
Merged

[ciqlts9_6] macvlan: fix possible UAF in macvlan_forward_source()#1016
roxanan1996 merged 1 commit intociqlts9_6from
{ciq_kernel_automation}_ciqlts9_6

Conversation

@ciq-kernel-automation
Copy link

Summary

This PR has been automatically created after successful completion of all CI stages.

Commit Message(s)

macvlan: fix possible UAF in macvlan_forward_source()

jira VULN-174919
cve CVE-2026-23001
commit-author Eric Dumazet <edumazet@google.com>
commit 7470a7a63dc162f07c26dbf960e41ee1e248d80e

Test Results

✅ Build Stage

Architecture Build Time Total Time
x86_64 33m 27s 37m 46s
aarch64 18m 6s 21m 0s

✅ Boot Verification

✅ Kernel Selftests

Architecture Passed Failed
x86_64 207 43
aarch64 155 44

Test Comparison

x86_64:

  • ⚠️ Status: Skipped - No baseline available

aarch64:

  • ⚠️ Status: Skipped - No baseline available

🤖 This PR was automatically generated by GitHub Actions
Run ID: 23581279785

jira VULN-174919
cve CVE-2026-23001
commit-author Eric Dumazet <edumazet@google.com>
commit 7470a7a

Add RCU protection on (struct macvlan_source_entry)->vlan.

Whenever macvlan_hash_del_source() is called, we must clear
entry->vlan pointer before RCU grace period starts.

This allows macvlan_forward_source() to skip over
entries queued for freeing.

Note that macvlan_dev are already RCU protected, as they
are embedded in a standard netdev (netdev_priv(ndev)).

Fixes: 79cf79a ("macvlan: add source mode")
	Reported-by: syzbot+7182fbe91e58602ec1fe@syzkaller.appspotmail.com
https: //lore.kernel.org/netdev/695fb1e8.050a0220.1c677c.039f.GAE@google.com/T/#u
	Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260108133651.1130486-1-edumazet@google.com
	Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 7470a7a)
	Signed-off-by: CIQ Kernel Automation <ciq_kernel_automation@ciq.com>
@github-actions
Copy link

🤖 Validation Checks In Progress Workflow run: https://github.com/ctrliq/kernel-src-tree/actions/runs/23588733017

@github-actions
Copy link

Validation checks completed successfully View full results: https://github.com/ctrliq/kernel-src-tree/actions/runs/23588733017

@roxanan1996 roxanan1996 merged commit b838ffc into ciqlts9_6 Mar 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants