EDAC/thunderx: Fix possible out-of-bounds string access
Summary
| CVE | CVE-2023-52464 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-02-23 15:15:08 UTC |
| Updated | 2026-10-15 01:17:14 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: EDAC/thunderx: Fix possible out-of-bounds string access Enabling -Wstringop-overflow globally exposes a warning for a common bug in the usage of strncat(): drivers/edac/thunderx_edac.c: In function 'thunderx_ocx_com_threaded_isr': drivers/edac/thunderx_edac.c:1136:17: error: 'strncat' specified bound 1024 equals destination size [-Werror=stringop-overflow=] 1136 | strncat(msg, other, OCX_MESSAGE_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 1145 | strncat(msg, other, OCX_MESSAGE_SIZE); ... 1150 | strncat(msg, other, OCX_MESSAGE_SIZE); ... Apparently the author of this driver expected strncat() to behave the way that strlcat() does, which uses the size of the destination buffer as its third argument rather than the length of the source buffer. The result is that there is no check on the size of the allocated buffer. Change it to strlcat(). [ bp: Trim compiler output, fixup commit message. ] |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-119
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 71c17ee02538802ceafc830f0736aa35b564e601 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 5da3b6e7196f0b4f3728e4e25eb20233a9ddfaf6 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 6aa7865ba7ff7f0ede0035180fb3b9400ceb405a git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 700cf4bead80fac994dcc43ae1ca5d86d8959b21 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 9dbac9fdae6e3b411fc4c3fca3bf48f70609c398 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e e1c86511241588efffaa49556196f09a498d5057 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 426fae93c01dffa379225eb2bd4d3cdc42c6eec5 git | Not specified |
| CNA | Linux | Linux | affected 41003396f932d7f027725c7acebb6a7caa41dc3e 475c58e1a471e9b873e3e39958c64a2d278275c8 git | Not specified |
| CNA | Linux | Linux | affected 4.12 | Not specified |
| CNA | Linux | Linux | unaffected 4.12 semver | Not specified |
| CNA | Linux | Linux | unaffected 4.19.306 4.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.268 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.209 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.148 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.75 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.14 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.7.2 6.7.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.8 * original_commit_for_fix | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| cert-portal.siemens.com/productcert/html/ssa-398330.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/6aa7865ba7ff7f0ede0035180fb3b9400ceb405a | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/426fae93c01dffa379225eb2bd4d3cdc42c6eec5 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2024/06/msg00016.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/700cf4bead80fac994dcc43ae1ca5d86d8959b21 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/475c58e1a471e9b873e3e39958c64a2d278275c8 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/9dbac9fdae6e3b411fc4c3fca3bf48f70609c398 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e1c86511241588efffaa49556196f09a498d5057 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2024/06/msg00020.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/5da3b6e7196f0b4f3728e4e25eb20233a9ddfaf6 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/71c17ee02538802ceafc830f0736aa35b564e601 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 200182 Ubuntu Security Notification for Linux kernel (OEM) Vulnerabilities (USN-6688-1)
- 200241 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6726-1)
- 200243 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6725-1)
- 755965 SUSE Enterprise Linux Security Update for the linux kernel (SUSE-SU-2024:0858-1)
- 755988 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0975-1)
- 756005 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0925-1)
- 756010 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0977-1)