{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47548","id":"CVE-2021-47548","title":"ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()\n\nThe if statement:\n  if (port >= DSAF_GE_NUM)\n        return;\n\nlimits the value of port less than DSAF_GE_NUM (i.e., 8).\nHowever, if the value of port is 6 or 7, an array overflow could occur:\n  port_rst_off = dsaf_dev->mac_cb[por","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()\n\nThe if statement:\n  if (port >= DSAF_GE_NUM)\n        return;\n\nlimits the value of port less than DSAF_GE_NUM (i.e., 8).\nHowever, if the value of port is 6 or 7, an array overflow could occur:\n  port_rst_off = dsaf_dev->mac_cb[port]->port_rst_off;\n\nbecause the length of dsaf_dev->mac_cb is DSAF_MAX_PORT_NUM (i.e., 6).\n\nTo fix this possible array overflow, we first check port and if it is\ngreater than or equal to DSAF_MAX_PORT_NUM, the function returns.","published":"2024-05-24T15:09:52.634Z","updated":"2026-06-17T04:17:44.320Z","reserved":"2024-05-24T15:02:54.829Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"948968f8747650447c8f21c9fdba0e1973be040b","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"abbd5faa0748d0aa95d5191d56ff7a17a6275bd1","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"dd07f8971b81ad98cc754b179b331b57f35aa1ff","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"22519eff7df2d88adcc2568d86046ce1e2b52803","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"fc7ffa7f10b9454a86369405d9814bf141b30627","status":"affected","versionType":"git"},{"version":"850bfa3b78ea8849fef78ed74f5f2ccf947db0ca","lessThan":"a66998e0fbf213d47d02813b9679426129d0d114","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","lessThan":"4.7","status":"unaffected","versionType":"semver"},{"version":"4.9.292","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.257","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.220","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.164","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.84","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.7","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-129"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/948968f8747650447c8f21c9fdba0e1973be040b","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/abbd5faa0748d0aa95d5191d56ff7a17a6275bd1","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/dd07f8971b81ad98cc754b179b331b57f35aa1ff","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/fc7ffa7f10b9454a86369405d9814bf141b30627","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/a66998e0fbf213d47d02813b9679426129d0d114","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.01358,"epssPercentile":0.72279,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47548","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47548","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47548","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47548","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}