Jelly, 11 11 10 9 bytes
-1 using ovs's observation.
Ẇ;Ɲw@Ƈ¥ÐḟṪL;Ɲẇ€ṣ1ẈṀ‘
10 byter
Ẇ;ƝẇƇ¥ÐḟṪL
How?
Ẇ;Ɲw@Ƈ¥ÐḟṪLẆ;ƝẇƇ¥ÐḟṪL - Link: A, B
Ẇ - sublists of A (from shortest to longest)
Ðḟ - filter discard those for which:
¥ - last two links as a dyad, f(substringOfA, B):
;Ɲ - length 2 sublists of substringOfA
Ƈ - keep those (pairs) for which:
w@ẇ - is this pair a sublist of B?
Ṫ - tail -> longest uncommon substring
L - length