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-08-05 17:57 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:11298 0 None None None 2025-07-16 05:58:24 UTC
Red Hat Product Errata RHSA-2025:11299 0 None None None 2025-07-16 05:45:19 UTC
Red Hat Product Errata RHSA-2025:11570 0 None None None 2025-07-23 00:22:58 UTC
Red Hat Product Errata RHSA-2025:12238 0 None None None 2025-07-30 06:05:10 UTC
Red Hat Product Errata RHSA-2025:12623 0 None None None 2025-08-04 05:09:40 UTC
Red Hat Product Errata RHSA-2025:13029 0 None None None 2025-08-05 15:48:19 UTC
Red Hat Product Errata RHSA-2025:13030 0 None None None 2025-08-05 15:55:23 UTC
Red Hat Product Errata RHSA-2025:13061 0 None None None 2025-08-05 17:57:10 UTC

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

Comment 10 errata-xmlrpc 2025-07-16 05:45:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:11299 https://access.redhat.com/errata/RHSA-2025:11299

Comment 11 errata-xmlrpc 2025-07-16 05:58:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:11298 https://access.redhat.com/errata/RHSA-2025:11298

Comment 14 errata-xmlrpc 2025-07-23 00:22:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:11570 https://access.redhat.com/errata/RHSA-2025:11570

Comment 15 errata-xmlrpc 2025-07-30 06:05:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2025:12238 https://access.redhat.com/errata/RHSA-2025:12238

Comment 18 errata-xmlrpc 2025-08-04 05:09:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:12623 https://access.redhat.com/errata/RHSA-2025:12623

Comment 19 errata-xmlrpc 2025-08-05 15:48:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:13029 https://access.redhat.com/errata/RHSA-2025:13029

Comment 20 errata-xmlrpc 2025-08-05 15:55:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:13030 https://access.redhat.com/errata/RHSA-2025:13030

Comment 21 errata-xmlrpc 2025-08-05 17:57:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2025:13061 https://access.redhat.com/errata/RHSA-2025:13061


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