CVE-2023-53401
published medium CVSS 3.1 · 4.7mm: kmem: fix a NULL pointer dereference in obj_stock_flush_required()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbf4f059954dcb221384b2f784677e19a13cd4bdb to < 33d9490b27e5d8da4444aefd714a4f50189db978 · bf4f059954dcb221384b2f784677e19a13cd4bdb to < 33391c7e1a2ad612bf3922cc168cb09a46bbe236 · bf4f059954dcb221384b2f784677e19a13cd4bdb to < 3b8abb3239530c423c0b97e42af7f7e856e1ee96 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.9 (affected) · 0 to < 5.9 (unaffected · semver) · 6.1.45 through 6.1.* (unaffected · semver) · 6.4.10 through 6.4.* (unaffected · semver) · 6.5 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-330 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.89.1.rt7.430.el8_10 | ALSA-2025:22800 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.89.1.el8_10 | ALSA-2025:22801 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.89.1.el8_10 | ELSA-2025-22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-305.183.1.el8_4 | RHSA-2026:0533 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-305.183.1.el8_4 | RHSA-2026:0533 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-305.183.1.el8_4 | RHSA-2026:0533 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-305.183.1.el8_4 | RHSA-2026:0533 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-372.175.1.el8_6 | RHSA-2026:0536 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-477.123.1.el8_8 | RHSA-2025:23427 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-553.89.1.el8_10 | RHSA-2025:22801 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: mm: kmem: fix a NULL pointer dereference in obj_stock_flush_required() KCSAN found an issue in obj_stock_flush_required(): stock->cached_objcg can be reset between the check and dereference: ================================================================== BUG: KCSAN: data-race in drain_all_stock / drain_obj_stock write to 0xffff888237c2a2f8 of 8 bytes by task 19625 on cpu 0: drain_obj_stock+0x408/0x4e0 mm/memcontrol.c:3306 refill_obj_stock+0x9c/0x1e0 mm/memcontrol.c:3340 obj_cgroup_uncharge+0xe/0x10 mm/memcontrol.c:3408 memcg_slab_free_hook mm/slab.h:587 [inline] __cache_free mm/slab.c:3373 [inline] __do_kmem_cache_free mm/slab.c:3577 [inline] kmem_cache_free+0x105/0x280 mm/slab.c:3602 __d_free fs/dcache.c:298 [inline] dentry_free fs/dcache.c:375 [inline] __dentry_kill+0x422/0x4a0 fs/dcache.c:621 dentry_kill+0x8d/0x1e0 dput+0x118/0x1f0 fs/dcache.c:913 __fput+0x3bf/0x570 fs/file_table.c:329 ____fput+0x15/0x20 fs/file_table.c:349 task_work_run+0x123/0x160 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888237c2a2f8 of 8 bytes by task 19632 on cpu 1: obj_stock_flush_required mm/memcontrol.c:3319 [inline] drain_all_stock+0x174/0x2a0 mm/memcontrol.c:2361 try_charge_memcg+0x6d0/0xd10 mm/memcontrol.c:2703 try_charge mm/memcontrol.c:2837 [inline] mem_cgroup_charge_skmem+0x51/0x140 mm/memcontrol.c:7290 sock_reserve_memory+0xb1/0x390 net/core/sock.c:1025 sk_setsockopt+0x800/0x1e70 net/core/sock.c:1525 udp_lib_setsockopt+0x99/0x6c0 net/ipv4/udp.c:2692 udp_setsockopt+0x73/0xa0 net/ipv4/udp.c:2817 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271 __do_sys_setsockopt net/socket.c:2282 [inline] __se_sys_setsockopt net/socket.c:2279 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff8881382d52c0 -> 0xffff888138893740 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19632 Comm: syz-executor.0 Not tainted 6.3.0-rc2-syzkaller-00387-g534293368afa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Fix it by using READ_ONCE()/WRITE_ONCE() for all accesses to stock->cached_objcg.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.7 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bf4f059954dcb221384b2f784677e19a13cd4bdb to < 33d9490b27e5d8da4444aefd714a4f50189db978 (affected · git)bf4f059954dcb221384b2f784677e19a13cd4bdb to < 33391c7e1a2ad612bf3922cc168cb09a46bbe236 (affected · git)bf4f059954dcb221384b2f784677e19a13cd4bdb to < 3b8abb3239530c423c0b97e42af7f7e856e1ee96 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.9 (affected)0 to < 5.9 (unaffected · semver)6.1.45 through 6.1.* (unaffected · semver)6.4.10 through 6.4.* (unaffected · semver)6.5 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
3Provider assertions
2Linux · cna
mm: kmem: fix a NULL pointer dereference in obj_stock_flush_required()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e2730bd56c871c3d19f526feec294e6e0032ae7d43f59706df5938887ab37bd6
- Ingested
- 23 Sep 2026, 08:14:56 UTC
- Source record
- Official CVE record