be2net: Fix buffer overflow in be_get_module_eeprom
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.290, 4.19.254, 4.9.325, 5.10.134, 5.15.58, 5.18.15, 5.4.208
- CVEs
- CVE-2022-49581
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 08:46 UTC · Revision 1
Source evidence
be2net: Fix buffer overflow in be_get_module_eeprom
core-osv · Original sourcePublished 26 Feb 2025, 02:23 UTC
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.
osv:CVE-2022-49581
Kernel
Fixed versions: 4.9.325, 4.14.290, 4.19.254, 5.4.208, 5.10.134, 5.15.58, 5.18.15
Complete source record
{
"id": "e4f41c3958af65ab7a62a1021a6f6d2d8c0e8247cc5c88cc93ec05a77663250a",
"url": "https://osv.dev/vulnerability/CVE-2022-49581",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "be2net: Fix buffer overflow in be_get_module_eeprom",
"summary": "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.",
"evidence": "osv:CVE-2022-49581",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.9.325",
"evidence": "/affected/1/ranges"
},
{
"value": "4.14.290",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.254",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.208",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.134",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.58",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.15",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-49581",
"aliases": [
"CVE-2022-49581"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "e36edd9d26cf257511548edaf2b7a56eb4fed854"
},
{
"fixed": "a5a8fc0679a8fd58d47aa2ebcfc5742631f753f9"
},
{
"fixed": "fe4473fc7940f14c4a12db873b9729134c212654"
},
{
"fixed": "8ff4f9df73e5c551a72ee6034886c17e8de6596d"
},
{
"fixed": "a8569f76df7ec5b4b51155c57523a0b356db5741"
},
{
"fixed": "665cbe91de2f7c97c51ca8fce39aae26477c1948"
},
{
"fixed": "aba8ff847f4f927ad7a1a1ee4a9f29989a1a728f"
},
{
"fixed": "18043da94c023f3ef09c15017bdb04e8f695ef10"
},
{
"fixed": "d7241f679a59cfe27f92cb5c6272cb429fb1f7ec"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49581.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.18.0"
},
{
"fixed": "4.9.325"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "4.14.290"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.254"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.208"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.134"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.58"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.18.15"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49581.json"
}
}
],
"modified": "2026-10-28T02:30:34.260285014Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/18043da94c023f3ef09c15017bdb04e8f695ef10",
"https://git.kernel.org/stable/c/665cbe91de2f7c97c51ca8fce39aae26477c1948",
"https://git.kernel.org/stable/c/8ff4f9df73e5c551a72ee6034886c17e8de6596d",
"https://git.kernel.org/stable/c/a5a8fc0679a8fd58d47aa2ebcfc5742631f753f9",
"https://git.kernel.org/stable/c/a8569f76df7ec5b4b51155c57523a0b356db5741",
"https://git.kernel.org/stable/c/aba8ff847f4f927ad7a1a1ee4a9f29989a1a728f",
"https://git.kernel.org/stable/c/d7241f679a59cfe27f92cb5c6272cb429fb1f7ec",
"https://git.kernel.org/stable/c/fe4473fc7940f14c4a12db873b9729134c212654",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49581.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49581",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49581.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49581",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 501253,
"published_at": "2025-02-26T02:23:19.148+00:00"
}