It was narrated that ‘Aa’ishah (may Allah be pleased with her) said: The Messenger of Allah (blessings and peace of Allah be upon him) used to kiss and touch (his wife) when he was fasting, but he was the most able of you to control his desire.
Narrated by al-Bukhaari (1927) and Muslim (1106)
Shaykh Ibn ‘Uthaymeen (may Allah have mercy on him) said: Kissing, with regard to one who is fasting, is divided into two categories: that which is permissible and that which is prohibited.
That which is prohibited is if he cannot be sure that he will not render his fast invalid.
That which is permissible is of two types:
1. where kissing will not provoke desire at all
2. where kissing may provoke desire, but he is confident that his fast will not be rendered invalid.
As for actions other than kissing that may lead to intercourse, such as embracing and the like, they come under the same ruling as kissing and there is no differentiation.
End quote from ash-Sharh al-Mumti‘ (6/429)