CVE-2023-52464

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52464
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52464.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52464
Downstream
Related
Published
2024-02-23T14:46:24.150Z
Modified
2025-11-26T19:34:44.980469Z
Summary
EDAC/thunderx: Fix possible out-of-bounds string access
Details

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/thunderxedac.c: In function 'thunderxocxcomthreadedisr': drivers/edac/thunderxedac.c:1136:17: error: 'strncat' specified bound 1024 equals destination size [-Werror=stringop-overflow=] 1136 | strncat(msg, other, OCXMESSAGESIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 1145 | strncat(msg, other, OCXMESSAGESIZE); ... 1150 | strncat(msg, other, OCXMESSAGESIZE);

...

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. ]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/9c3874e559580d6c6ec8d449812ac11277724770/cves/2023/52xxx/CVE-2023-52464.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
71c17ee02538802ceafc830f0736aa35b564e601
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
5da3b6e7196f0b4f3728e4e25eb20233a9ddfaf6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
6aa7865ba7ff7f0ede0035180fb3b9400ceb405a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
700cf4bead80fac994dcc43ae1ca5d86d8959b21
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
9dbac9fdae6e3b411fc4c3fca3bf48f70609c398
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
e1c86511241588efffaa49556196f09a498d5057
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
426fae93c01dffa379225eb2bd4d3cdc42c6eec5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
41003396f932d7f027725c7acebb6a7caa41dc3e
Fixed
475c58e1a471e9b873e3e39958c64a2d278275c8

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.12.0
Fixed
4.19.306
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.268
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.209
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.148
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.75
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.14
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.2