{"id":"CVE-2024-27401","state":"PUBLISHED","title":"firewire: nosy: ensure user_length is taken into account when fetching packet contents","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirewire: nosy: ensure user_length is taken into account when fetching packet contents\n\nEnsure that packet_buffer_get respects the user_length provided. If\nthe length of the head packet exceeds the user_length, packet_buffer_get\nwill now return 0 to signify to the user that no data were read\nand a larger buffer size is required. Helps prevent user space overflows.","publishedAt":"2024-05-13T10:29:53.862Z","updatedAt":"2026-08-05T11:29:34.613Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/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":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"67f34f093c0f7bf33f5b4ae64d3d695a3b978285","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"7b8c7bd2296e95b38a6ff346242356a2e7190239","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"cca330c59c54207567a648357835f59df9a286bb","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"79f988d3ffc1aa778fc5181bdfab312e57956c6b","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"4ee0941da10e8fdcdb34756b877efd3282594c1f","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"1fe60ee709436550f8cfbab01295936b868d5baa","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"539d51ac48bcfcfa1b3d4a85f8df92fa22c1d41c","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"38762a0763c10c24a4915feee722d7aa6e73eb98","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firewire/nosy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.36","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.36","versionType":"semver"},{"version":"4.19.314","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.276","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.217","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.159","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.91","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.31","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.10","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firewire/nosy.c"]}],"references":["https://git.kernel.org/stable/c/67f34f093c0f7bf33f5b4ae64d3d695a3b978285","https://git.kernel.org/stable/c/7b8c7bd2296e95b38a6ff346242356a2e7190239","https://git.kernel.org/stable/c/cca330c59c54207567a648357835f59df9a286bb","https://git.kernel.org/stable/c/79f988d3ffc1aa778fc5181bdfab312e57956c6b","https://git.kernel.org/stable/c/4ee0941da10e8fdcdb34756b877efd3282594c1f","https://git.kernel.org/stable/c/1fe60ee709436550f8cfbab01295936b868d5baa","https://git.kernel.org/stable/c/539d51ac48bcfcfa1b3d4a85f8df92fa22c1d41c","https://git.kernel.org/stable/c/38762a0763c10c24a4915feee722d7aa6e73eb98","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OTB4HWU2PTVW5NEYHHLOCXDKG3PYA534/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DW2MIOIMOFUSNLHLRYX23AFR36BMKD65/","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27401.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27401","state":"PUBLISHED","datePublished":"2024-05-13T10:29:53.862Z","dateUpdated":"2026-08-05T11:29:34.613Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-25T13:47:42.681Z"},"containers":{"cna":{"title":"firewire: nosy: ensure user_length is taken into account when fetching packet contents","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirewire: nosy: ensure user_length is taken into account when fetching packet contents\n\nEnsure that packet_buffer_get respects the user_length provided. If\nthe length of the head packet exceeds the user_length, packet_buffer_get\nwill now return 0 to signify to the user that no data were read\nand a larger buffer size is required. Helps prevent user space overflows."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"67f34f093c0f7bf33f5b4ae64d3d695a3b978285","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"7b8c7bd2296e95b38a6ff346242356a2e7190239","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"cca330c59c54207567a648357835f59df9a286bb","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"79f988d3ffc1aa778fc5181bdfab312e57956c6b","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"4ee0941da10e8fdcdb34756b877efd3282594c1f","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"1fe60ee709436550f8cfbab01295936b868d5baa","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"539d51ac48bcfcfa1b3d4a85f8df92fa22c1d41c","versionType":"git"},{"version":"286468210d83ce0ca1e37e346ed9f4457a161650","status":"affected","lessThan":"38762a0763c10c24a4915feee722d7aa6e73eb98","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firewire/nosy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.36","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.36","versionType":"semver"},{"version":"4.19.314","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.276","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.217","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.159","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.91","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.31","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.10","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firewire/nosy.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/67f34f093c0f7bf33f5b4ae64d3d695a3b978285"},{"url":"https://git.kernel.org/stable/c/7b8c7bd2296e95b38a6ff346242356a2e7190239"},{"url":"https://git.kernel.org/stable/c/cca330c59c54207567a648357835f59df9a286bb"},{"url":"https://git.kernel.org/stable/c/79f988d3ffc1aa778fc5181bdfab312e57956c6b"},{"url":"https://git.kernel.org/stable/c/4ee0941da10e8fdcdb34756b877efd3282594c1f"},{"url":"https://git.kernel.org/stable/c/1fe60ee709436550f8cfbab01295936b868d5baa"},{"url":"https://git.kernel.org/stable/c/539d51ac48bcfcfa1b3d4a85f8df92fa22c1d41c"},{"url":"https://git.kernel.org/stable/c/38762a0763c10c24a4915feee722d7aa6e73eb98"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is triggered by a local `read(2)` syscall on the `/dev/nosy` character device, where the caller supplies the undersized `user_length` that the kernel then ignores. Although the overflowing bytes originate from the IEEE 1394 bus, the vulnerable code path itself is entered and controlled entirely through a local file-descriptor operation.\nAC:L - The attacker simply calls `read()` with a small `count` while any traffic is present on the snooped 1394 bus (cycle-start packets alone arrive every 125 µs, and a bus reset queues a packet), making the overflow reliably and repeatedly reproducible with no memory-layout or timing conditions outside the attacker's control.\nPR:L - `nosy.c` contains no capability or permission checks whatsoever — reachability is decided solely by the permissions on `/dev/nosy`, which on the developer, lab, embedded and protocol-analysis systems where this sniffer is deployed is routinely opened up to a non-root group or passed into a container. Choosing the higher-severity option between L and H, an ordinary unprivileged user with the device node is sufficient.\nUI:N - The attacker performs the `read()` themselves and needs no victim action; the overflow occurs as soon as a packet longer than the supplied buffer is dequeued. No mount, no file open by another user, no configuration change by an administrator is required.\nS:U - The out-of-bounds write lands inside the address space of the process that issued the `read()`, and the compromised resources belong to the same security authority as the vulnerable kernel component. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - `nosy_read()` returns a length greater than the requested `count`, so a caller following the standard read idiom consumes, prints, or logs memory located beyond its own buffer — an unbounded disclosure of adjacent process memory (heap pointers, keys, buffered data). The accompanying memory corruption is further leverageable to leak state from a privileged reader.\nI:H - Up to roughly 8 KB of externally supplied 1394 packet bytes are written past the end of the caller's stack or heap buffer, giving a large, content-controlled out-of-bounds write. Overwriting adjacent objects, saved registers, or function pointers in a nosy consumer that customarily runs as root yields control-flow hijack and arbitrary modification.\nA:H - The overflow reliably smashes adjacent memory and will SIGSEGV or abort the reading process (typically a root sniffer/logging daemon), and the copy can also fault mid-transfer leaving the buffer state inconsistent. Repeated triggering keeps the affected service permanently down."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:29:34.613Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"4.19.314"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"5.4.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"5.10.217"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"5.15.159"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.1.91"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.6.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.8.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-27401","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-13T17:55:43.034157Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-05T17:21:00.939Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/67f34f093c0f7bf33f5b4ae64d3d695a3b978285","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7b8c7bd2296e95b38a6ff346242356a2e7190239","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/cca330c59c54207567a648357835f59df9a286bb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/79f988d3ffc1aa778fc5181bdfab312e57956c6b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4ee0941da10e8fdcdb34756b877efd3282594c1f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1fe60ee709436550f8cfbab01295936b868d5baa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/539d51ac48bcfcfa1b3d4a85f8df92fa22c1d41c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/38762a0763c10c24a4915feee722d7aa6e73eb98","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OTB4HWU2PTVW5NEYHHLOCXDKG3PYA534/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DW2MIOIMOFUSNLHLRYX23AFR36BMKD65/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:34:52.126Z"}}]}}}