In the Linux kernel, the following vulnerability has been resolved:
hfs: fix slab-out-of-bounds in hfsbnoderead()
This patch introduces isbnodeoffsetvalid() method that checks the requested offset value. Also, it introduces checkandcorrectrequestedlength() method that checks and correct the requested length (if it is necessary). These methods are used in hfsbnoderead(), hfsbnodewrite(), hfsbnodeclear(), hfsbnodecopy(), and hfsbnode_move() with the goal to prevent the access out of allocated memory and triggering the crash.