Add AF_ALG socket creation detection for CVE-2026-31431 kernel privilege escalation#5969
Open
gkazimiarovich wants to merge 8 commits into
Open
Conversation
9e2dfce to
fcf82f8
Compare
fcf82f8 to
91ec652
Compare
phantinuss
approved these changes
Apr 30, 2026
Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
swachchhanda000
approved these changes
May 1, 2026
6 tasks
frack113
approved these changes
May 8, 2026
Collaborator
swachchhanda000
left a comment
There was a problem hiding this comment.
If this behaviour is very specific and reliable indicator of this particular CVE, then it should be an Emerging Threats(ET) rule.
Co-authored-by: frack113 <62423083+frack113@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Adds a new Sigma rule to detect creation of AF_ALG (Address Family 38) sockets via the Linux
socket()syscall as captured by auditd. AF_ALG is the Linux kernel crypto API userspace interface, exploited in CVE-2026-31431 for local privilege escalation via via a buffer overflow in the AF_ALG AEAD splice path that corrupts the page cache of SUID binaries.This socket type has near-zero legitimate usage in production environments. Testing across ~500M
CreateSocketevents showed zero AF_ALG baseline activity. The rule was validated against a live exploit execution on Ubuntu 24.04 (kernel 6.17) with auditd syscall monitoring enabled.Requires auditd rule:
auditctl -a always,exit -F arch=b64 -S socket -k af_alg_detectChangelog
new: Linux AF_ALG Socket Creation - Kernel Crypto API Exploit Indicator
Example Log Event
Key fields:
syscall=41→socket()a0=26→ 0x26 = 38 decimal = AF_ALGa1=80005→ SOCK_SEQPACKET | SOCK_CLOEXEC (AEAD cipher mode)comm="python3"→ exploit delivered via interpreteruid=1000→ non-root user initiating the exploitFixed Issues
N/A - New rule submission.
SigmaHQ Rule Creation Conventions