CVE-2023-53075
kernel: ftrace: Fix invalid address access in lookup_rec() when index is 0
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
ftrace: Fix invalid address access in lookup_rec() when index is 0
KASAN reported follow problem:
BUG: KASAN: use-after-free in lookup_rec
Read of size 8 at addr ffff000199270ff0 by task modprobe
CPU: 2 Comm: modprobe
Call trace:
kasan_report
__asan_load8
lookup_rec
ftrace_location
arch_check_ftrace_location
check_kprobe_address_safe
register_kprobe
When checking pg->records[pg->index - 1].ip in lookup_rec(), it can get a
pg which is newly added to ftrace_pages_start in ftrace_process_locs().
Before the first pg->index++, index is 0 and accessing pg->records[-1].ip
will cause this problem.
Don't check the ip when pg->index is 0.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 97 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.46-2.ph4 |
Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | bpftool +25 | eol |
| 8 | bpftool +45 | eol |
| 9 | bpftool +106 | affected |
SUSE Linux Enterprise 3 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-261-default | 1-8.3.1 | SUSE-SU-2025:01983-1 |
| 12.5 | cluster-md-kmp-default +13 | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| 15.4 | kernel-livepatch-5-14-21-150400-24-167-default | 1-150400.9.3.1 | SUSE-SU-2025:02262-1 |
| 15.4 | cluster-md-kmp-default +17 | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| 15.4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| 15.5 | kernel-livepatch-5-14-21-150500-55-110-default | 1-150500.11.7.1 | SUSE-SU-2025:02173-1 |
2 more rows
SUSE Linux Enterprise Micro 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| 5.3 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| 5.3 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
| 5.4 | kernel-rt +1 | 5.14.21-150400.15.121.1 | SUSE-SU-2025:01918-1 |
| 5.4 | kernel-default | 5.14.21-150400.24.167.1 | SUSE-SU-2025:02262-1 |
| 5.4 | kernel-default-base | 5.14.21-150400.24.167.1.150400.24.84.1 | SUSE-SU-2025:02262-1 |
3 more rows
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-1-21-1-45 | 1.0-0.amzn2023 |
| 2023 | bpftool +17 | 6.1.21-1.45.amzn2023 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.178-1 |
| 12 | linux | 6.1.25-1 |
| 13 | linux | 6.1.25-1 |
| 14 | linux | 6.1.25-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.1.25-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-linux | 5.10.178-1 |
| 12 | rootio-linux | 6.1.25-1 |
| 13 | rootio-linux | 6.1.25-1 |
root.io ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | 5.15.0-79.86 |
ubuntu 4 releases · 37 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux-ibm-5-4 | 5.4.0-1054.59~18.04.1 |
| 18.04-ESM | linux-raspi-5-4 | 5.4.0-1091.102~18.04.1 |
| 18.04-ESM | linux-oracle-5-4 | 5.4.0-1106.115~18.04.1 |
| 18.04-ESM | linux-aws-5-4 | 5.4.0-1107.115~18.04.1 |
| 18.04-ESM | linux-gcp-5-4 | 5.4.0-1110.119~18.04.1 |
| 18.04-ESM | linux-azure-5-4 | 5.4.0-1113.119~18.04.1 |
59 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-53075
- git.kernel.org https://git.kernel.org/linus/ee92fa443358f4fc0017c1d0d325c27b37802504 (6.3-rc3)
- git.kernel.org https://git.kernel.org/stable/c/2a0d71fabfeb349216d33f001a6421b1768bd3a9
- git.kernel.org https://git.kernel.org/stable/c/2de28e5ce34b22b73b833a21e2c45ae3aade3964
- git.kernel.org https://git.kernel.org/stable/c/4f84f31f63416b0f02fc146ffdc4ab32723eb7e8
- git.kernel.org https://git.kernel.org/stable/c/7569ee04b0e3b32df79f64db3a7138573edad9bc
- git.kernel.org https://git.kernel.org/stable/c/83c3b2f4e7c61367c7b24551f4c6eb94bbdda283
- git.kernel.org https://git.kernel.org/stable/c/ac58b88ccbbb8e9fb83e137cee04a856b1ea6635
- git.kernel.org https://git.kernel.org/stable/c/ee92fa443358f4fc0017c1d0d325c27b37802504
- git.kernel.org https://git.kernel.org/stable/c/f1bd8b7fd890d87d0dc4dedc6287ea34dd07c0b4
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.