CVE-2026-46149: scsi: target: configfs: Bound snprintf() return in tg_pt_gp_members_show()

Published May 28, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: target: configfs: Bound snprintf() return in tgptgpmembersshow()

targettgptgpmembersshow() formats LUN paths with snprintf() into a 256-byte stack buffer, then will memcpy() curlen bytes from that buffer. snprintf() returns the length the output would have had, which can exceed the buffer size when the fabric WWN is long because iSCSI IQN names can be up to 223 bytes. The check at the memcpy() site only guards the destination page write, not the source read, so memcpy() will read past the stack buffer and copy adjacent stack contents to the sysfs reader, which when CONFIGFORTIFYSOURCE is enabled, fortifypanic() will be triggered.

Commit 27e06650a5ea ("scsi: target: targetcoreconfigfs: Add length check to avoid buffer overflow") added the same bound to the targetlugpmembersshow() but the tgptgp variant was missed so resolve that here.

Affected Software

13 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=2.6.38<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.140
Linux Linux kernel>=6.7<6.12.88
Linux Linux kernel>=6.13<6.18.30
Linux Linux kernel>=6.19<7.0.7
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Microsoft azl3 kernel 6.6.139.1-1<6.6.141.1-1
6.6.141.1-1
IBM QRadar<=7.6.0.0 - 7.6.0.4
IBM QRadar<=7.5.0 - 7.5.0 UP16 IF01

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.141.1-1

Event History

May 28, 2026
CVE Published
via MITRE·09:36 AM
Data Sourced
via MITRE·09:36 AM
DescriptionSeverity
Data Sourced
via NVD·10:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 29, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeaknessAffected Software
Oct 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Who can trigger this issue?

The CVSS vector indicates local access with low privileges is required. The vulnerable path is reached when a sysfs reader accesses the affected target configuration output.

2

What condition is needed to expose memory beyond the stack buffer?

The formatted LUN path must exceed the 256-byte stack buffer. The description specifically notes that a long fabric WWN can cause this, because iSCSI IQN names may be up to 223 bytes.

3

What is the likely impact on systems built with CONFIG_FORTIFY_SOURCE?

When CONFIG_FORTIFY_SOURCE is enabled, the out-of-bounds source read in memcpy() can trigger fortify_panic(). This can cause a denial of service rather than returning adjacent stack contents to the reader.

4

How can administrators identify potentially affected configurations?

Review target configuration entries that generate LUN paths with long fabric WWNs, particularly iSCSI configurations using long IQN names. The affected function formats these paths before exposing the group-member information through sysfs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203