Linux: Out-of-bounds Read
CVE-2023-52504 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.1 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 3719d3c36aa853d5a2401af9f8d6b116c91ad5ae, 3770c38cd6a60494da29ac2da73ff8156440a2d1, 6788b10620ca6e98575d1e06e72a8974aad7657e as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.27% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 3719d3c36aa853d5a2401af9f8d6b116c91ad5ae or 3770c38cd6a60494da29ac2da73ff8156440a2d1 or 6788b10620ca6e98575d1e06e72a8974aad7657e or ecba5afe86f30605eb9dfb7f265a8de0218d4cfc, whichever matches your release line, or a later version.
- Update Linux Kernel to 4.19.297 or 5.4.270 or 5.10.199 or 5.15.136, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, 3719d3c36aa853d5a2401af9f8d6b116c91ad5ae; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, 3770c38cd6a60494da29ac2da73ff8156440a2d1; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, 6788b10620ca6e98575d1e06e72a8974aad7657e; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, ecba5afe86f30605eb9dfb7f265a8de0218d4cfc; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, 5b784489c8158518bf7a466bb3cc045b0fb66b4b; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, cd287cc208dfe6bd6da98e7f88e723209242c9b4; 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 up to, but not including, d35652a5fc9944784f6f50a5c979518ff8dacf61; 4.17 | 3719d3c36aa853d5a2401af9f8d6b116c91ad5ae, 3770c38cd6a60494da29ac2da73ff8156440a2d1, 6788b10620ca6e98575d1e06e72a8974aad7657e, ecba5afe86f30605eb9dfb7f265a8de0218d4cfc, 5b784489c8158518bf7a466bb3cc045b0fb66b4b, cd287cc208dfe6bd6da98e7f88e723209242c9b4 |
| Linux | Linux Kernel | 4.17 up to, but not including, 4.19.297; 4.20 up to, but not including, 5.4.270; 5.5 up to, but not including, 5.10.199; 5.11 up to, but not including, 5.15.136; 5.16 up to, but not including, 6.1.59; 6.2 up to, but not including, 6.5.8; 6.6 | 4.19.297, 5.4.270, 5.10.199, 5.15.136, 6.1.59, 6.5.8 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.
Official description
In the Linux kernel, the following vulnerability has been resolved: x86/alternatives: Disable KASAN in apply_alternatives() Fei has reported that KASAN triggers during apply_alternatives() on a 5-level paging machine: BUG: KASAN: out-of-bounds in rcu_is_watching() Read of size 4 at addr ff110003ee6419a0 by task swapper/0/0 ... __asan_load4() rcu_is_watching() trace_hardirqs_on() text_poke_early() apply_alternatives() ... On machines with 5-level paging, cpu_feature_enabled(X86_FEATURE_LA57) gets patched. It includes KASAN code, where KASAN_SHADOW_START depends on __VIRTUAL_MASK_SHIFT, which is defined with cpu_feature_enabled(). KASAN gets confused when apply_alternatives() patches the KASAN_SHADOW_START users. A test patch that makes KASAN_SHADOW_START static, by replacing __VIRTUAL_MASK_SHIFT with 56, works around the issue. Fix it for real by disabling KASAN while the kernel is patching alternatives. [ mingo: updated the changelog ]
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
How developers prevent this class of flaw
- Use a language that provides appropriate memory abstractions.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/3719d3c36aa853d5a2401af9f8d6b116c91ad5ae
- git.kernel.org/stable/c/3770c38cd6a60494da29ac2da73ff8156440a2d1
- git.kernel.org/stable/c/5b784489c8158518bf7a466bb3cc045b0fb66b4b
- git.kernel.org/stable/c/6788b10620ca6e98575d1e06e72a8974aad7657e
- git.kernel.org/stable/c/cd287cc208dfe6bd6da98e7f88e723209242c9b4
- git.kernel.org/stable/c/d35652a5fc9944784f6f50a5c979518ff8dacf61
- git.kernel.org/stable/c/ecba5afe86f30605eb9dfb7f265a8de0218d4cfc
Recent Out-of-bounds Read vulnerabilities
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.5 High severity
Spotted an error? Tell us.