Commit 637e3d3
committed
xsk: fix an integer overflow in xp_create_and_assign_umem()
jira LE-3262
cve CVE-2025-21997
Rebuild_History Non-Buildable kernel-5.14.0-570.21.1.el9_6
commit-author Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
commit 559847f
Since the i and pool->chunk_size variables are of type 'u32',
their product can wrap around and then be cast to 'u64'.
This can lead to two different XDP buffers pointing to the same
memory area.
Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.
Fixes: 94033cd ("xsk: Optimize for aligned case")
Cc: stable@vger.kernel.org
Signed-off-by: Ilia Gavrilov <Ilia.Gavrilov@infotecs.ru>
Link: https://patch.msgid.link/20250313085007.3116044-1-Ilia.Gavrilov@infotecs.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 559847f)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 85815f0 commit 637e3d3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments