Bug 2348254 (CVE-2022-49058) - CVE-2022-49058 kernel: cifs: potential buffer overflow in handling symlinks
Summary: CVE-2022-49058 kernel: cifs: potential buffer overflow in handling symlinks
Keywords:
Status: NEW
Alias: CVE-2022-49058
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:23 UTC by OSIDB Bzimport
Modified: 2025-06-16 20:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:23:00 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 14:03:09 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022653-CVE-2022-49058-5df2@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 18:13:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022653-CVE-2022-49058-5df2@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.