{"id":"CVE-2021-47308","state":"PUBLISHED","title":"scsi: libfc: Fix array index out of bound exception","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: libfc: Fix array index out of bound exception\n\nFix array index out of bound exception in fc_rport_prli_resp().","publishedAt":"2024-05-21T14:35:27.319Z","updatedAt":"2026-08-05T08:47:12.469Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"44651522941c623e20882b3b443f23f77de1ea8b","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"4921b1618045ffab71b1050bf0014df3313a2289","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"0fe70c15f9435bb3c50954778245d62ee38b0e03","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"a4a54c54af2516caa9c145015844543cfc84316a","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"8511293e643a18b248510ae5734e4f360754348c","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"b27c4577557045f1ab3cdfeabfc7f3cd24aca1fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/libfc/fc_rport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.241","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.199","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.135","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.53","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.13.5","status":"unaffected","lessThanOrEqual":"5.13.*","versionType":"semver"},{"version":"5.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/libfc/fc_rport.c"]}],"references":["https://git.kernel.org/stable/c/44651522941c623e20882b3b443f23f77de1ea8b","https://git.kernel.org/stable/c/4921b1618045ffab71b1050bf0014df3313a2289","https://git.kernel.org/stable/c/0fe70c15f9435bb3c50954778245d62ee38b0e03","https://git.kernel.org/stable/c/a4a54c54af2516caa9c145015844543cfc84316a","https://git.kernel.org/stable/c/8511293e643a18b248510ae5734e4f360754348c","https://git.kernel.org/stable/c/b27c4577557045f1ab3cdfeabfc7f3cd24aca1fe"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47308.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47308","state":"PUBLISHED","datePublished":"2024-05-21T14:35:27.319Z","dateUpdated":"2026-08-05T08:47:12.469Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T13:27:52.133Z"},"containers":{"cna":{"title":"scsi: libfc: Fix array index out of bound exception","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: libfc: Fix array index out of bound exception\n\nFix array index out of bound exception in fc_rport_prli_resp()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"44651522941c623e20882b3b443f23f77de1ea8b","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"4921b1618045ffab71b1050bf0014df3313a2289","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"0fe70c15f9435bb3c50954778245d62ee38b0e03","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"a4a54c54af2516caa9c145015844543cfc84316a","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"8511293e643a18b248510ae5734e4f360754348c","versionType":"git"},{"version":"386b97b43c0c9e0d878eec7ea1db16af22b036ae","status":"affected","lessThan":"b27c4577557045f1ab3cdfeabfc7f3cd24aca1fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/libfc/fc_rport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.241","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.199","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.135","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.53","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.13.5","status":"unaffected","lessThanOrEqual":"5.13.*","versionType":"semver"},{"version":"5.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/libfc/fc_rport.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/44651522941c623e20882b3b443f23f77de1ea8b"},{"url":"https://git.kernel.org/stable/c/4921b1618045ffab71b1050bf0014df3313a2289"},{"url":"https://git.kernel.org/stable/c/0fe70c15f9435bb3c50954778245d62ee38b0e03"},{"url":"https://git.kernel.org/stable/c/a4a54c54af2516caa9c145015844543cfc84316a"},{"url":"https://git.kernel.org/stable/c/8511293e643a18b248510ae5734e4f360754348c"},{"url":"https://git.kernel.org/stable/c/b27c4577557045f1ab3cdfeabfc7f3cd24aca1fe"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The bug is reached when processing a Fibre Channel PRLI LS_ACC from a peer on the same FC SAN fabric or FCoE (ETH_P_FCOE) L2 segment; that is adjacent-network topology, not Internet-routable IP.\nAC:L - After the initiator automatically PLOGIs/PRLIs a discovered port, the peer fully controls the PRLI ACC and can set spp_type to any u8 >= FC_FC4_PROV_SIZE, reliably indexing past fc_passive_prov[] with no race or nondeterministic condition.\nPR:N - fc_exch_recv and the FCoE/HBA receive path accept fabric-peer frames with no OS credential or capability check; fabric zoning only constrains topology, not authenticated privileges on this code path.\nUI:N - Discovery-driven fc_rport_login automatically advances through PLOGI into PRLI against a presented target; no separate victim action such as mounting a volume or confirming a prompt is required.\nS:U - The out-of-bounds provider-table access and resulting indirect call corrupt host kernel control flow within the same OS security authority and do not cross a VM, IOMMU, or sandbox boundary.\nC:H - Attacker-chosen spp_type performs an unbounded (up to index 255) out-of-bounds read of adjacent kernel pointer/data (including into fc_active_prov and further module globals), which per guidance is High confidentiality impact and enables further disclosure primitives if the call is hijacked.\nI:H - The OOB-read value is used as a struct fc4_prov * and prov->prli() is invoked, yielding an attacker-influenced indirect call that enables control-flow hijacking and arbitrary code execution.\nA:H - Dereferencing or calling through a non-NULL OOB pointer that is not a valid fc4_prov causes a kernel oops/panic, which is High availability impact and can be retried on subsequent PRLI exchanges."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:47:12.469Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"4.14.241"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"4.19.199"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.4.135"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.10.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.13.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.5,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-05-21T18:45:25.408358Z","id":"CVE-2021-47308","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","type":"CWE","lang":"en","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-08T21:15:58.371Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/44651522941c623e20882b3b443f23f77de1ea8b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4921b1618045ffab71b1050bf0014df3313a2289","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0fe70c15f9435bb3c50954778245d62ee38b0e03","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/a4a54c54af2516caa9c145015844543cfc84316a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8511293e643a18b248510ae5734e4f360754348c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b27c4577557045f1ab3cdfeabfc7f3cd24aca1fe","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:32:08.437Z"}}]}}}