Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-49058

published critical CVSS 3.1 · 9.1

cifs: potential buffer overflow in handling symlinks

Published
26 Feb 2025, 01:54:29 UTC
Updated
05 Aug 2026, 08:53:40 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 3e582749e742e662a8e9bb37cffac62dccaaa1e2 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 1316c28569a80ab3596eeab05bf5e01991e7e739 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < eb5f51756944735ac70cd8bb38637cc202e29c91 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 22d658c6c5affed10c8907e67160cef0b6c92186 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 4e166a41180be2f1e66bbb6d46448e80a9a5ec05 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 9901b07ba42b39266b34a888e48d7306fd707bee · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 515e7ba11ef043d6febe69389949c8ef5f25e9d0 · c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.37 (affected) · 0 to < 2.6.37 (unaffected · semver) · 4.9.311 through 4.9.* (unaffected · semver) · 4.14.276 through 4.14.* (unaffected · semver) · 4.19.239 through 4.19.* (unaffected · semver) · 5.4.190 through 5.4.* (unaffected · semver) · 5.10.112 through 5.10.* (unaffected · semver) · 5.15.35 through 5.15.* (unaffected · semver) · 5.17.4 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2024-2569 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2023-036 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2024-076 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
AlmaLinux 8 kernel Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.62.1.rt7.403.el8_10 ALSA-2025:11299
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 perf Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.62.1.el8_10 ALSA-2025:11298
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.62.1.el8_10 ELSA-2025-11298
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-193.162.1.el8_2 RHSA-2025:12623
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-305.165.1.el8_4 RHSA-2025:12238
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-193.162.1.el8_2 RHSA-2025:12623
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-305.165.1.el8_4 RHSA-2025:12238
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-193.162.1.el8_2 RHSA-2025:12623
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-305.165.1.el8_4 RHSA-2025:12238
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-193.162.1.el8_2 RHSA-2025:12623
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-305.165.1.el8_4 RHSA-2025:12238
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-305.165.1.el8_4 RHSA-2025:12238
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-372.153.1.el8_6 RHSA-2025:11570
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-477.104.1.el8_8 RHSA-2025:13061
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-553.62.1.el8_10 RHSA-2025:11298

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning: arch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error: __memcpy() 'dctx->buf' too small (16 vs u32max) It's caused because Smatch marks 'link_len' as untrusted since it comes from sscanf(). Add a check to ensure that 'link_len' is not larger than the size of the 'link_str' buffer.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

38

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.1 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:N - The attacker-controlled MF symlink payload is delivered over SMB as remote file contents and parsed in the CIFS client (query_mf_symlink/check_mf_symlink → parse_mf_symlink), so a malicious or compromised file server triggers the bug across the network. AC:L - A crafted 1067-byte MF symlink with an sscanf-derived link_len above 1024 (up to 9999 via %04u) deterministically drives crypto_shash_update/kstrndup past the in-buffer link_str; no race or layout luck is required. PR:N - The attacker only needs to operate or impersonate the SMB endpoint; no credentials or privileges on the victim client are required for the server to return the malicious object. UI:N - In the worst reasonable deployment (cifsroot defaults include mfsymlinks; fstab/autofs/container shares), ordinary client lookup/revalidate/get_link activity on an already-mounted share parses the planted object with no exploit-time victim action. S:U - The heap over-read and any resulting oops stay within the host kernel CIFS client authority and do not cross a VM, IOMMU, or sandbox boundary. C:H - parse_mf_symlink feeds an attacker-chosen link_len into hashing/string duplication over link_str, over-reading up to ~9KB past the kmalloc object; that is a large OOB read and can surface heap bytes via kstrndup if the MD5 check is satisfied. I:N - The defect is an out-of-bounds read of server-supplied symlink bytes into MD5/kstrndup paths, not an out-of-bounds write or control-flow corruption primitive, matching other SMB client OOB-read symlink parses. A:H - Reading thousands of bytes past a 1067-byte allocation can fault unmapped heap and oops the kernel, and a malicious server can trigger the malformed object repeatedly on path access.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 3e582749e742e662a8e9bb37cffac62dccaaa1e2 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 1316c28569a80ab3596eeab05bf5e01991e7e739 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < eb5f51756944735ac70cd8bb38637cc202e29c91 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 22d658c6c5affed10c8907e67160cef0b6c92186 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 4e166a41180be2f1e66bbb6d46448e80a9a5ec05 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 9901b07ba42b39266b34a888e48d7306fd707bee (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 515e7ba11ef043d6febe69389949c8ef5f25e9d0 (affected · git)c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 to < 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.37 (affected)0 to < 2.6.37 (unaffected · semver)4.9.311 through 4.9.* (unaffected · semver)4.14.276 through 4.14.* (unaffected · semver)4.19.239 through 4.19.* (unaffected · semver)5.4.190 through 5.4.* (unaffected · semver)5.10.112 through 5.10.* (unaffected · semver)5.15.35 through 5.15.* (unaffected · semver)5.17.4 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-120 CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (CISA-ADP · adp)

References

8

Provider assertions

2

Linux · cna

cifs: potential buffer overflow in handling symlinks

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
a5edb6ecee67c4d3bcecb45ab143e320a8048987488cbe41a8c85b12e742981e
Ingested
23 Sep 2026, 08:04:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected