be2net: Fix buffer overflow in be_get_module_eeprom (Linux Linux)

CVE-2022-49581
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.31 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: be2net: Fix buffer overflow in be_get_module_eeprom be_cmd_read_port_transceiver_data assumes that it is given a buffer that is at least PAGE_DATA_LEN long, or twice that if the module supports SFF 8472. However, this is not always the case. Fix this by passing the desired offset and length to be_cmd_read_port_transceiver_data so that we only copy the bytes once.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e36edd9d26cf257511548edaf2b7a56eb4fed854 < a5a8fc0679a8fd58d47aa2ebcfc5742631f753f9 ; affected e36edd9d26cf257511548edaf2b7a56eb4fed854 < fe4473fc7940f14c4a12db873b9729134c212654 ; affected e36edd9d26cf257511548edaf2b7a56eb4fed854 < 8ff4f9df73e5c551a72ee6034886c17e8de6596d ; affected e36edd9d26cf257511548edaf2b7a56eb4fed854 < a8569f76df7ec5b4b51155c57523a0b356db5741 ; affected e36edd9d26cf257511548edaf2b7a56eb4fed854 < 665cbe91de2f7c97c51ca8fce39aae26477c1948 ; affected e36edd9d26cf257511548edaf2b7a56eb4fed854 < aba8ff847f4f927ad7a1a1ee4a9f29989a1a728f
Linux · Linuxaffected 3.18 ; unaffected 0 < 3.18 ; unaffected 4.9.325 ≤ 4.9.* ; unaffected 4.14.290 ≤ 4.14.* ; unaffected 4.19.254 ≤ 4.19.* ; unaffected 5.4.208 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD