mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-14 05:41:56 +00:00
[GH-ISSUE #98] v1.0.20251004 caused a kernel oops #58
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#58
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?
Originally created by @orange-banal-pole on GitHub (Oct 5, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/98
Shortly after I established a client tunnel to an AWG 2.0 server, using
awg-quick, my kernel crashed:This is the client config:
@orange-banal-pole commented on GitHub (Oct 6, 2025):
@orange-banal-pole commented on GitHub (Oct 6, 2025):
As far as I understand, the out-of-bounds write happens here:
github.com/amnezia-vpn/amneziawg-linux-kernel-module@876bf7571e/src/junk.c (L293)We also have the same pointer arithmetics below:
github.com/amnezia-vpn/amneziawg-linux-kernel-module@876bf7571e/src/junk.c (L299)@orange-banal-pole commented on GitHub (Oct 6, 2025):
This patch seems to solve the issue:
@ygurov commented on GitHub (Oct 6, 2025):
Hi @orange-banal-pole,
Thanks for reporting and debugging the issue. Looks like you are right, we have a potential memory leak due to uninitialized pkt_size variable
Will put a PR shortly
@ygurov commented on GitHub (Oct 6, 2025):
Resolved in #99