netfilter: xt_nfacct: don't assume acct name is null-terminated
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ceb98d03eac5704820f2ac1f370c9ff385e3a9f5 · < 7c1ae471da69c09242834e956218ea6a42dd405a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: xt_nfacct: don't assume acct name is null-terminated
BUG: KASAN: slab-out-of-bounds in .. lib/vsprintf.c:721 Read of size 1 at addr ffff88801eac95c8 by task syz-executor183/5851 [..] string+0x231/0x2b0 lib/vsprintf.c:721 vsnprintf+0x739/0xf00 lib/vsprintf.c:2874 [..] nfacct_mt_checkentry+0xd2/0xe0 net/netfilter/xt_nfacct.c:41 xt_check_match+0x3d1/0xab0 net/netfilter/x_tables.c:523
nfnl_acct_find_get() handles non-null input, but the error printk relied on its presence.
From the CVE record · Linux
The Linux kernel’s netfilter xt_nfacct code can read beyond a buffer when an accounting name is not null-terminated and an error message prints it. The input does not establish whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their builds include the affected xt_nfacct code; affected versions were not provided.