CVE-2021-47548: ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()

Published May 24, 2024
·
Updated

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

ethernet: hisilicon: hns: hnsdsafmisc: fix a possible array overflow in hnsdsafgesrstbyport()

The if statement: if (port >= DSAFGENUM) return;

limits the value of port less than DSAFGENUM (i.e., 8). However, if the value of port is 6 or 7, an array overflow could occur: portrstoff = dsafdev->maccb[port]->portrstoff;

because the length of dsafdev->maccb is DSAFMAXPORTNUM (i.e., 6).

To fix this possible array overflow, we first check port and if it is greater than or equal to DSAFMAXPORTNUM, the function returns.

Other sources

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

ethernet: hisilicon: hns: hnsdsafmisc: fix a possible array overflow in hnsdsafgesrstbyport()

The Linux kernel CVE team has assigned CVE-2021-47548 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052441-CVE-2021-47548-e9c0@gregkh/T

Red Hat

Affected Software

18 affected componentsFixes available
redhat/kernel<4.9.292
4.9.292
redhat/kernel<4.14.257
4.14.257
redhat/kernel<4.19.220
4.19.220
redhat/kernel<5.4.164
5.4.164
redhat/kernel<5.10.84
5.10.84
redhat/kernel<5.15.7
5.15.7
redhat/kernel<5.16
5.16
Linux Linux kernel<4.9.292
Linux Linux kernel>=4.10<4.14.257
Linux Linux kernel>=4.15<4.19.220
Linux Linux kernel>=4.20<5.4.164
Linux Linux kernel>=5.5<5.10.84
Linux Linux kernel>=5.11<5.15.7
Linux Linux kernel=5.16-rc1
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2

Event History

May 24, 2024
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
Description
May 27, 2024
Data Sourced
via Red Hat·09:53 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-47548?

CVE-2021-47548 is categorized as a medium severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2021-47548?

To resolve CVE-2021-47548, you should upgrade the Linux kernel to version 4.9.292, 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, or 5.16.

3

Which versions of the Linux kernel are affected by CVE-2021-47548?

CVE-2021-47548 affects Linux kernel versions prior to 4.9.292, 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, and 5.16.

4

What component of the Linux kernel is impacted by CVE-2021-47548?

CVE-2021-47548 impacts the Ethernet handling subsystem, specifically the hisilicon hns driver in the Linux kernel.

5

Can CVE-2021-47548 lead to system exploitation?

Yes, CVE-2021-47548 may lead to an array overflow which could potentially be exploited by an attacker to cause denial of service or other vulnerabilities.

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