time/namespace: Validate nanosecond field in proc_timens_set_offset()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 06aba58e58492d2b8eae059274caed29025ea96e, Kernel 1f0c3c0c36c7aedf55a60d9c71c4bd258b8937ce, Kernel 5b8a40de738b7c4896c2edbc6262bd1b3462ded0 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: time/namespace: Validate nanosecond field in proc_timens_set_offset() The function validates tv_sec to be within [-KTIME_SEC_MAX, KTIME_SEC_MAX] but never validates that tv_nsec is within the valid range of [0, NSEC_PER_SEC-1] before using it in timespec64_add(). timespec64_add() expects both timespec64 structures to have normalized values with tv_nsec in the range [0, 999999999]. If off->val.tv_nsec contains invalid values (negative or >= NSEC_PER_SEC), it could lead to incorrect calculations or unexpected behavior. Add validation to ensure tv_nsec is within the valid range before performing the addition.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.6, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <06aba58e58492d2b8eae059274caed29025ea96e, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <1f0c3c0c36c7aedf55a60d9c71c4bd258b8937ce, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <5b8a40de738b7c4896c2edbc6262bd1b3462ded0, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <b20d7085ab314672447322c10cc5d1ba443e3b8e, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <ce0dd307dfa3193fbf06371b7c819a6bff7d3d68, >=04a8682a71becdb639ec9c0d82b315a2baef7a5d <db667d2970c756cc7b483f45f272440f845a665b | 06aba58e58492d2b8eae059274caed29025ea96e, 1f0c3c0c36c7aedf55a60d9c71c4bd258b8937ce, 5b8a40de738b7c4896c2edbc6262bd1b3462ded0, b20d7085ab314672447322c10cc5d1ba443e3b8e, ce0dd307dfa3193fbf06371b7c819a6bff7d3d68, db667d2970c756cc7b483f45f272440f845a665b |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket