{"id":"MSF-linux--local--cve_2026_31431_copy_fail","name":"Copy Fail AF_ALG + authencesn Page-Cache Write","description":"CVE-2026-31431 is a logic flaw in the Linux kernel's authencesn AEAD template that, when reached via the AF_ALG socket interface combined with splice(), allows an unprivileged local user to perform a controlled 4-byte write into the page cache of any readable file. Because the corrupted pages are never marked dirty, the on-disk file is unchanged but the in-memory version is immediately visible system-wide, enabling local privilege escalation by injecting shellcode into the page cache of a setuid-root binary such as /usr/bin/su. The vulnerability was introduced by an in-place optimization in algif_aead.c (commit 72548b093ee3, 2017) and affects essentially all major Linux distributions shipped since then until the fix in commit a664bf3d603d.","cves":["CVE-2026-31431"],"author":"Xint Code, rootsecdev, Spencer McIntyre, Diego Ledda","published":"2026-04-29","platform":"Linux,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/local/cve_2026_31431_copy_fail.rb","path":"modules/exploits/linux/local/cve_2026_31431_copy_fail.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"cve_2026_31431_copy_fail.rb","vulnerabilities":[{"id":"CVE-2026-31431","state":"PUBLISHED","title":"crypto: algif_aead - Revert to operating out-of-place","titleSource":"CVE Program","description":"In the Linux kernel, the following vulnerability has been resolved: crypto: algif_aead - Revert to operating out-of-place This mostly reverts commit 72548b093ee3 except for the copying of the associated data. There is no benefit in operating in-place in algif_aead since the source and destination come from different mappings. Get rid of all the complexity added for in-place operation and just copy the AD directly.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-31431","cvss":{"version":"3.1","baseScore":7.8,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-31431"},"updatedAt":"2026-10-15T01:16:12.771Z","retrievedAt":"2026-11-25T16:15:50.253Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--local--cve_2026_31431_copy_fail.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--local--cve_2026_31431_copy_fail","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--local--cve_2026_31431_copy_fail/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--local--cve_2026_31431_copy_fail/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}