{"id":"CVE-2026-139137","state":"PUBLISHED","title":"ice: set in_use only after preparing Tx timestamp index","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: set in_use only after preparing Tx timestamp index\n\nThe ice_ptp_request_ts() function is used to request a timestamp index for\nuse with a packet. When reserving an index, it sets the start time and\nsaves a pointer to the skb into the appropriate index. The function marks\nthe in_use bit first before doing any of these steps. The IRQ handler which\nclears the timestamps reads the in_use bits uses a lockless flow for\nreading the in_use bits to determine which ones are in-use. This is\nnecessary as actually processing a complete timestamp must be able to sleep\nso we cannot hold the timestamp tracker lock over the entire sequence.\nAdditionally, blocking the Tx hotpath with such a lock indefinitely would\nbe problematic.\n\nHowever, the existing flow now has a very narrow window where the IRQ\nhandler could see a timestamp as in-use but read a stale value for its\n\"start\" time.\n\nFix this by ordering the sequence to mark the in_use bit last, and add a\nmemory barrier to prevent re-ordering of the previous writes to setup the\nindex.\n\nThis was found and reported by Sashiko while reviewing an unrelated change.","publishedAt":"2026-11-30T13:31:55.449Z","updatedAt":"2026-11-30T13:31:55.449Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"b4a20a74e94034ae598ddee6652fbd8cc9250bf9","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"11d54e081223bc1035a47d0a306d7468f7a57d69","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"b19ee0a8f588d010e22942bfb5f06b0377973370","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"9690bb030143b6eb56b2e9abd28280fe229ae42f","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"bac741bac969635a57ed4a4ee5281adad0567240","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"50870d62116038e6f1e17a6aedcf2a95cec37ec7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_ptp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_ptp.c"]}],"references":["https://git.kernel.org/stable/c/b4a20a74e94034ae598ddee6652fbd8cc9250bf9","https://git.kernel.org/stable/c/11d54e081223bc1035a47d0a306d7468f7a57d69","https://git.kernel.org/stable/c/b19ee0a8f588d010e22942bfb5f06b0377973370","https://git.kernel.org/stable/c/9690bb030143b6eb56b2e9abd28280fe229ae42f","https://git.kernel.org/stable/c/bac741bac969635a57ed4a4ee5281adad0567240","https://git.kernel.org/stable/c/50870d62116038e6f1e17a6aedcf2a95cec37ec7"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139137.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139137","state":"PUBLISHED","datePublished":"2026-11-30T13:31:55.449Z","dateUpdated":"2026-11-30T13:31:55.449Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.916Z"},"containers":{"cna":{"title":"ice: set in_use only after preparing Tx timestamp index","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: set in_use only after preparing Tx timestamp index\n\nThe ice_ptp_request_ts() function is used to request a timestamp index for\nuse with a packet. When reserving an index, it sets the start time and\nsaves a pointer to the skb into the appropriate index. The function marks\nthe in_use bit first before doing any of these steps. The IRQ handler which\nclears the timestamps reads the in_use bits uses a lockless flow for\nreading the in_use bits to determine which ones are in-use. This is\nnecessary as actually processing a complete timestamp must be able to sleep\nso we cannot hold the timestamp tracker lock over the entire sequence.\nAdditionally, blocking the Tx hotpath with such a lock indefinitely would\nbe problematic.\n\nHowever, the existing flow now has a very narrow window where the IRQ\nhandler could see a timestamp as in-use but read a stale value for its\n\"start\" time.\n\nFix this by ordering the sequence to mark the in_use bit last, and add a\nmemory barrier to prevent re-ordering of the previous writes to setup the\nindex.\n\nThis was found and reported by Sashiko while reviewing an unrelated change."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"b4a20a74e94034ae598ddee6652fbd8cc9250bf9","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"11d54e081223bc1035a47d0a306d7468f7a57d69","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"b19ee0a8f588d010e22942bfb5f06b0377973370","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"9690bb030143b6eb56b2e9abd28280fe229ae42f","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"bac741bac969635a57ed4a4ee5281adad0567240","versionType":"git"},{"version":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1","status":"affected","lessThan":"50870d62116038e6f1e17a6aedcf2a95cec37ec7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_ptp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_ptp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b4a20a74e94034ae598ddee6652fbd8cc9250bf9"},{"url":"https://git.kernel.org/stable/c/11d54e081223bc1035a47d0a306d7468f7a57d69"},{"url":"https://git.kernel.org/stable/c/b19ee0a8f588d010e22942bfb5f06b0377973370"},{"url":"https://git.kernel.org/stable/c/9690bb030143b6eb56b2e9abd28280fe229ae42f"},{"url":"https://git.kernel.org/stable/c/bac741bac969635a57ed4a4ee5281adad0567240"},{"url":"https://git.kernel.org/stable/c/50870d62116038e6f1e17a6aedcf2a95cec37ec7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:55.449Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}