{"id":"CVE-2026-139137","summary":"ice: set in_use only after preparing Tx timestamp index","details":"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.","modified":"2026-12-01T21:02:36.531722960Z","published":"2026-11-30T13:31:55.449Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139137.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/11d54e081223bc1035a47d0a306d7468f7a57d69"},{"type":"WEB","url":"https://git.kernel.org/stable/c/50870d62116038e6f1e17a6aedcf2a95cec37ec7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9690bb030143b6eb56b2e9abd28280fe229ae42f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b19ee0a8f588d010e22942bfb5f06b0377973370"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4a20a74e94034ae598ddee6652fbd8cc9250bf9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bac741bac969635a57ed4a4ee5281adad0567240"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139137.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139137"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ea9b847cda647b9849b0b9fa0447e876a1ac62e1"},{"fixed":"b4a20a74e94034ae598ddee6652fbd8cc9250bf9"},{"fixed":"11d54e081223bc1035a47d0a306d7468f7a57d69"},{"fixed":"b19ee0a8f588d010e22942bfb5f06b0377973370"},{"fixed":"9690bb030143b6eb56b2e9abd28280fe229ae42f"},{"fixed":"bac741bac969635a57ed4a4ee5281adad0567240"},{"fixed":"50870d62116038e6f1e17a6aedcf2a95cec37ec7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139137.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139137.json"}}],"schema_version":"1.9.2"}