mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[PR #213] [MERGED] fix: read is_keepalive before sending skb #240
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/213
Author: @shilin-ai
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/12/2026
Merged by: @ygurov
Base:
master← Head:fix/is-keepalive-uaf📝 Commits (1)
a1fb0b5fix: read is_keepalive before sending skb📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/send.c(+3 -1)📄 Description
Summary
ce16310, keepalive detection usesPACKET_CB(skb)->is_keepalive.wg_socket_send_skb_to_peer(), which consumes the skb.skb->cb, so the bool can become garbage (UBSAN:load of value 51 is not a valid value for type '_Bool'insend.c/wg_packet_tx_worker).Fix
Capture
is_keepaliveinto a local before sending, matching the pre-ce16310pattern that evaluated keepalive status before transmit.Test plan
S4/ContentPaddingAdditionenabledinvalid-loadinsend.c/wg_packet_tx_workerMade with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.